ID: 24880
Updated by: [EMAIL PROTECTED]
Reported By: d dot stogov at turck dot spb dot ru
Status: Open
Bug Type: Zend Engine 2 problem
Operating System: Windows 2000
PHP Version: 5.0.0b1 (beta1)
New Comment:
Classes in userland are case insensitive.
<?php
class Lala {
}
$lala = new lala();
$lolo = new Lala();
var_dump($lala);
var_dump($lolo);
?>
Result:
object(lala)(0) {
}
object(lala)(0) {
}
Its all in lowercase and stdClass which is not defined in userland is
not case sensitive and has got a big 'C' so you can't extend it. Its
like a feature request change:
Changing the name of the stdClass. Its not possible because of BC. This
should break scripts that have got stdclass as their class own name.
Anyone from the PHP Group can comment this?
Previous Comments:
------------------------------------------------------------------------
[2003-07-31 06:51:46] d dot stogov at turck dot spb dot ru
Description:
------------
The following script produce a error during compilation in PHP 5.0.0b1
but it works well with PHP 4.
Reproduce code:
---------------
<?php
class c extends stdClass {
}
echo "ok";
?>
Expected result:
----------------
ok
Actual result:
--------------
Fatal error: Class 'stdclass' not found in
c:\apache\htdocs\std_class.php on line 2
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24880&edit=1