Bug #671: new constructor feature break objects?
| From: | chrism at FOUR dot net | Date: | Thu, 20 Aug 1998 02:11:49 +0000 |
| Subject: | Bug #671: new constructor feature break objects? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-328@lists.php.net to get a copy of this message | ||
From: chrism@FOUR.net
Operating system: FreeBSD3
PHP version: 3.0.3
PHP Bug Type: Misbehaving function
Bug description:
ChangeLog documents new constructor feature. I've not
seen any documentation on how this works, however running
some old scripts through 3.0.3 fails:
<?
class test {
function test($what) {
}
}
$obj = new test;
?>
The above under 3.0.1 works fine. 3.0.3 gives:
Warning: Missing argument 1 in call to test() in 303test.php3 on line 3
Is it just my luck that I used functions with the same name as the class? Should I edit all my
source?
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net