Hi, I need to know which is the correct new construct: class_name or __construct.
>From Zend_Changes: The Zend Engine 2.0 introduces a standard way of declaring constructor methods by calling them by the name __construct(). ... For backwards compatibility, if the Zend Engine 2.0 cannot find a __construct() function for a given class, it will search for the old-style constructor function, by the name of the class. But: <?php class A { function __construct() { echo "into A::__construct()"; } function A() { echo "into A::A()"; } } $a = new A; ?> and "/usr/local/php5-230202003/bin/php test.php" give this result: into A::A() And this is not correct, or not ? tnx -- michel 'ziobudda' morelli <[EMAIL PROTECTED]> -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php