We use the last defined constructor. We fixed a problem in B4 where old style constructors didn't always work.

Andi

At 12:30 AM 3/22/2004 +0000, t wrote:
<?php
class a
{
function __construct()
{
echo '__construct()';
}

function a()
{
echo 'a()';
}
}

$a=new a;
?>

Outputs ... a() ... when I would expect ... __construct() ... is this a bug,
some sort of new (only seeing this occur since RC1) feature, or some option
I'm supposed to switch off ?

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to