|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-30 11:42 UTC] sniper@php.net
[2001-06-01 08:03 UTC] flying at dom dot natm dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 08:00:01 2025 UTC |
Environment: - Windows 2000 Server - Apache v1.3.19 - PHP v4.0.5 (Win32 binaries from www.php.net) Following script falls with error message: Fatal error: Cannot redeclare innerfunc() in test.php line 4 ----------------------------------------------- <?php function outerFunc() { function innerFunc() { echo "Into innerFunc()<br>"; } echo "Entering outerFunc()<br>"; innerFunc(); echo "Leaving outerFunc()<br>"; }; outerFunc(); outerFunc(); ?> ----------------------------------------------- Crash appears at second function call. Bug is 100% reproducible in PHP v4.0.4 and v4.0.5