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
147 * @return string|array|bool content or false on error
239 return false; //callback error
249 * @return bool true on success, otherwise false
301 * @return bool true on success, otherwise false
310 msg("Writing $file failed", -1);
326 * or all lines if $maxlines is -1. If $regex is true then captures can be used in $newline.
338 * @return bool true on success
340 * @author Steven Danz <steven-danz@kc.rr.com>
347 Logger::error('io_replaceInFile() $oldline parameter cannot be empty');
366 // make non-regexes into regexes
376 // $matched will be set to 0|1 depending on whether pattern is matched and line replaced
377 $lines[$i] = preg_replace($pattern, $replace, $line, -1, $matched);
393 msg("Removing content from $file failed", -1);
413 * @return bool true on success
429 * the lock is assumed to be stale and the function goes on
444 //waited longer than 3 seconds? -> stale lock
445 if ((time() - $timeStart) > 3) break;
530 msg("Creating directory $dir failed", -1);
580 if ($f == '..' || $f == '.') continue;
594 if (!io_rmdir($dir, $removefiles)) return false; // abort on any error
598 if (!@unlink($file)) return false; //abort on any error
636 * - $file is the full filename to save the file, incl. path
637 * - if successful will return true, false otherwise
640 * - $file is the directory where the file should be saved
641 * - if successful will return the name used for the saved file, false otherwise
658 $http->max_bodysize = $maxSize;
659 $http->timeout = 25; //max. 25 sec
660 $http->keep_alive = false; // we do single ops here, no need for keep-alive
662 $data = $http->get($url);
667 if (isset($http->resp_headers['content-disposition'])) {
668 $content_disposition = $http->resp_headers['content-disposition'];
701 * rename() can not overwrite existing files on Windows
743 if (!$ph) return -1;
763 * @return array matching lines or backref, false on error
777 if (!str_ends_with($line, "\n")) continue;
798 * Warning: reading uncompressed size of content of bz-files requires uncompressing
812 fseek($fp, -4, SEEK_END);