[ phpopencounter-Bugs-994408 ] PHP error: include() has no defined return value
"SourceForge.net" <[email protected]> Wed, 21 Jul 2004 09:51:14 -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 (Comment added) made by bergmann You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101716&aid=994408&group_id=1716 Category: None Group: None >Status: Deleted Resolution: None Priority: 5 Submitted By: Sybren Stüvel (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. ---------------------------------------------------------------------- >Comment By: Sebastian Bergmann (bergmann) Date: 2004-07-21 18:51 Message: Logged In: YES user_id=7993 Please reopen in http://developer.berlios.de/bugs/?group_id=2025. ---------------------------------------------------------------------- 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