PHP 4.0 Bug #1531 Updated: require() causes flex scanner error

From: Date: Thu, 17 Aug 2000 15:48:09 +0000
Subject: PHP 4.0 Bug #1531 Updated: require() causes flex scanner error
Groups: php.dev 
Request: Send a blank email to php-dev+get-29300@lists.php.net to get a copy of this message
ID: 1531 Updated by: hholzgra Reported By: graeme@kc.co.nz Status: Open Bug Type: Feature/Change Request Assigned To: Comments: BD>> still it should not result in a parse error > It's not parse error, please read the message. > It didn't failed opening, it failed reading. > And require is not allowed to fail. > That's not unknown file, that's known non-file. >-- >Stanislav Malyshev stas@zend.com ok, got it now, i thought it was related to just ./, not directories in general but it fails for include to, while including for example a non-existing file produces the message i cited above and the error message is very misleading so i move this on to feature requests: 1) should give clearer error-message 2) at least include should treat directories like nonexistant (or empty?) files and issue a warning instead of a fatal error Full Bug description available at: http://bugs.php.net/?id=1531

« previous php.dev (#29300) next »