|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-01 13:40 UTC] sniper@php.net
[2007-07-02 13:34 UTC] siegler at boskage dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 16:00:01 2025 UTC |
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.