PHP 4.0 Bug #2338: Redeclaration of functions not handled

From: Date: Mon, 20 Sep 1999 22:06:41 +0000
Subject: PHP 4.0 Bug #2338: Redeclaration of functions not handled
Groups: php.dev 
Request: Send a blank email to php-dev+get-11121@lists.php.net to get a copy of this message
From: brad@brocku.ca Operating system: SGI IRIX 6.5.4 PHP version: 4.0 Beta 2 PHP Bug Type: Scripting Engine problem Bug description: Redeclaration of functions not handled <?php function one () { } print "Before\n"; function one () { } print "After\n"; ?> Using PHP4b2 running this script produces Content-Type: text/html -------------------------- Content-Type: text/html Before -------------------------- no errors or dump. Running the same script with php 3.0.11 produces (as expected): --------------------------- Content-type: text/html Before <br> <b>Fatal error</b>: Can't redeclare already declared function in <b>bug.php</b> on line <b>8</b><br> -----------------------------

« previous php.dev (#11121) next »