|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-01-29 12:30 UTC] zeev at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 01 19:00:02 2026 UTC |
Defining functions and classes inside required files no longer works. Following script should echo "foobar" but does not : require.php : <?php echo "foo"; require("./inc.php"); //defines foo() foo(); ?> inc.php : <?php function foo() { echo "bar\n"; } ?> ./php require.php X-Powered-By: PHP/4.0b4-dev Content-Type: text/html foo Also, scripts die silently if you define classes inside required files.