Hello,

I don't know if this is a bug or a feature, but... The code below works with
PHP 4, but gives an error in PHP 5.

Nuno


--------------------------------
<?php
$test = new test();
$test->func();

class test
{
    function func() {
        echo 'test';
    }
}
?>
-------------------
PHP 4:
test
-------------------
PHP 5:
Fatal error: Class 'test' not found in C:\...\bug.php on line 2

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

Reply via email to