Bug #13568 Updated: PHP3 semantics have been retained for nested functions

From: Date: Fri, 14 Dec 2001 19:01:10 +0000
Subject: Bug #13568 Updated: PHP3 semantics have been retained for nested functions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-73795@lists.php.net to get a copy of this message
ID: 13568 Updated by: yohgaki Reported By: alvarez@st-oneline.net Status: Open Bug Type: Scripting Engine problem Old Operating System: Linux 2.2.19 Operating System: Linux Old PHP Version: 4.0.5 PHP Version: 4.10 New Comment: Parhaps, ZE2 should depreciate this syntax. I really want BNF for PHP. Previous Comments: ------------------------------------------------------------------------ [2001-10-05 14:56:31] alvarez@st-oneline.net container (); a script to reproduce the error quickly. function container () { function nested_php3 () { echo "this will be output"; } nested_php3 (); nested_php4 (); function nested_php4 () { echo "this won't be output"; } } ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13568&edit=1

« previous php.dev (#73795) next »