[ phpopencounter-Bugs-994408 ] PHP error: include() has no defined return value
"SourceForge.net" <[email protected]> Tue, 20 Jul 2004 03:00:53 -0700
| Newsgroups | gmane.comp.web.phpopentracker.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #994408, was opened at 2004-07-20 12:00 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101716&aid=994408&group_id=1716 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Sybren Stuvel (bustersnyvel) Assigned to: Nobody/Anonymous (nobody) Summary: PHP error: include() has no defined return value Initial Comment: In API.php, line 262, the following line is used: if (@include(POT_INCLUDE_PATH . 'API/plugins/' . $file)) This assumes that the include() statement returns false in case of an error, and true otherwise. This behaviour isn't documented in the PHP documentation. This means that an include() statement can fail silently, killing off the entire script. It would be a lot better if this include() was checked in another way. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101716&aid=994408&group_id=1716 ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click