PHP 4.0 Bug #8257: Functions defined in the auto-appended file cannot be called from original file
| From: | dron007 at yahoo dot com | Date: | Thu, 14 Dec 2000 13:11:59 +0000 |
| Subject: | PHP 4.0 Bug #8257: Functions defined in the auto-appended file cannot be called from original file | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41347@lists.php.net to get a copy of this message | ||
From: dron007@yahoo.com
Operating system: Red Hat 5.2 (kernel 2.2.17)
PHP version: 4.0.3pl1
PHP Bug Type: Scripting Engine problem
Bug description: Functions defined in the auto-appended file cannot be called from original file
In php.ini file:
auto_append_file =/usr/local/apache/htdocs/www/after.phtml
File test.phtml:
<?
test();
?>
File after.phtml:
<?
echo "after.phtml start<br>";
function test()
{
echo "test";
}
echo "after.phtml end<br>";
?>
When I run file test.phtml I see the message:
"Fatal error: Call to undefined function: test() in /usr/local/apache3/htdocs/www/oc/test.phtml
on line 2"
After removing the call of test() function in test.phtml everything works OK. It shows:
after.phtml start
after.phtml end
--
Edit Bug report at: http://bugs.php.net/?id=8257&edit=1