Re: Bug in error report with auto_prepend_file

From: Date: Fri, 23 Aug 2002 05:44:29 +0000
Subject: Re: Bug in error report with auto_prepend_file
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-87336@lists.php.net to get a copy of this message
On Fri, 23 Aug 2002, Denis Arh wrote: > I have a .htaccess file with this settings: > php_value auto_prepend_file startup.php > > And it outputs error: > Warning: Failed opening 'startup.php' for inclusion > (include_path='.:/php/includes:/webs/libs') in Unknown on line 0 > > > I know what the error is :) Just want to show you the "unknown" and "on line > 0"... a little bug... Actually this is correct, for PHP the auto prepend and append file are run as new scripts before or after the real script (but functions and vars are kept), and that's why it doesn't know the filename/linenumber for those files, as they don't exist. Derick --------------------------------------------------------------------------- Did I help you? http://www.derickrethans.nl/link.php?url=giftlist Frequent ranting: http://www.derickrethans.nl/ --------------------------------------------------------------------------- PHP: Scripting the Web - derick@php.net All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net ---------------------------------------------------------------------------

« previous php.dev (#87336) next »