Lines Matching +full:continue +full:- +full:on +full:- +full:error

23  * @param string $id - a pageid, the namespace of that id will be tried to deleted
24 * @param string $basedir - the config name of the type to delete (datadir or mediadir usally)
25 * @return bool - true if at least one namespace was deleted
98 return ''; //callback error
113 * @return string|bool the file contents or false on error
145 * has a bug (php/php-src#21376) in PHP 8.5.3+ where gzfile() fails to detect
146 * corrupt gzip data and returns garbage instead of an error.
151 * @return string|false content or false on error
182 $consumed = inflate_get_read_len($ctx) - $readBefore;
197 * @return string|array|bool content or false on error
289 return false; //callback error
299 * @return bool true on success, otherwise false
351 * @return bool true on success, otherwise false
360 msg("Writing $file failed", -1);
376 * or all lines if $maxlines is -1. If $regex is true then captures can be used in $newline.
388 * @return bool true on success
390 * @author Steven Danz <steven-danz@kc.rr.com>
397 Logger::error('io_replaceInFile() $oldline parameter cannot be empty');
416 // make non-regexes into regexes
426 // $matched will be set to 0|1 depending on whether pattern is matched and line replaced
427 $lines[$i] = preg_replace($pattern, $replace, $line, -1, $matched);
443 msg("Removing content from $file failed", -1);
463 * @return bool true on success
479 * the lock is assumed to be stale and the function goes on
494 //waited longer than 3 seconds? -> stale lock
495 if ((time() - $timeStart) > 3) break;
580 msg("Creating directory $dir failed", -1);
630 if ($f == '..' || $f == '.') continue;
644 if (!io_rmdir($dir, $removefiles)) return false; // abort on any error
648 if (!@unlink($file)) return false; //abort on any error
686 * - $file is the full filename to save the file, incl. path
687 * - if successful will return true, false otherwise
690 * - $file is the directory where the file should be saved
691 * - if successful will return the name used for the saved file, false otherwise
708 $http->max_bodysize = $maxSize;
709 $http->timeout = 25; //max. 25 sec
710 $http->keep_alive = false; // we do single ops here, no need for keep-alive
712 $data = $http->get($url);
717 if (isset($http->resp_headers['content-disposition'])) {
718 $content_disposition = $http->resp_headers['content-disposition'];
751 * rename() can not overwrite existing files on Windows
793 if (!$ph) return -1;
813 * @return array matching lines or backref, false on error
827 if (!str_ends_with($line, "\n")) continue;
848 * Warning: reading uncompressed size of content of bz-files requires uncompressing
862 fseek($fp, -4, SEEK_END);