From: siegler at boskage dot com Operating system: Windows Server 2003 (IIS 6) PHP version: 5.2.3 PHP Bug Type: Filesystem function related Bug description: Problem with require function
Description: ------------ I am having problems using a require statement and getting very odd results. The link of code is: require("util.php"); util.php does exist in the same directory as the executing script (I have even run getcwd() to insure my path is getting interpreted correctly). Initially I was getting no error output from this, and for some reason when I change the code to read: require("util.php") or die("blah"); I will get my error, except require is throwing a notice instead of a fatal error so I need this die statement to actually get an error to show, and die never shows the text I pass to the function. Reproduce code: --------------- Any require statement may or may not reproduce this issue (for the most part it seems pretty random). I can temporarily fix this by switching my require to an include, run the script, switch back to require and rerun the script. It will work then for a short period of time. -- Edit bug report at http://bugs.php.net/?id=41855&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41855&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41855&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41855&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41855&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41855&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41855&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41855&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41855&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41855&r=support Expected behavior: http://bugs.php.net/fix.php?id=41855&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41855&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41855&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41855&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41855&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41855&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41855&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41855&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41855&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41855&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41855&r=mysqlcfg