|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-09-23 22:44 UTC] jimw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 07:00:01 2025 UTC |
After editing a user note in online manual, I was/am redirected to admin-notes.php and the following is one of the errors that exists : Warning: stat failed for function.function.print.php.php (errno=2 - No such file or directory) in /local/Web/sites/phpweb/include/layout.inc on line 346 Of course, despite these Warnings, the edit succeeds. I didn't realize is_file creates such Warnings, maybe this should be a bug report for is_file? Or, turn down your error_reporting level :-) error_reporting(E_ALL); if (is_file('idontexist.php')) // creates warning if (file_exists('idontexist.php')) // no warning Regards, Philip from layout.inc function?sect_to_file($string)?{ ????$string?=?strtolower($string); ????$string?=?str_replace(' ','-',$string); ????$string?=?str_replace('_','-',$string); ????$func?=?"function.$string.php"; ????$chap?=?"ref.$string.php"; ????$feat?=?"features.$string.php"; ????$struct?=?"control-structures.$string.php"; ????if(is_file($func))?return?$func; // line #346 ????else?if(is_file($chap))?return?$chap; ????else?if(is_file($feat))?return?$feat; ????else?if(is_file($struct))?return?$struct; ????else?return?"$string.php"; }