Re: [PHP4BETA] cascading class wierdness?

From: Date: Wed, 11 Aug 1999 22:20:37 +0000
Subject: Re: [PHP4BETA] cascading class wierdness?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-3348@lists.php.net to get a copy of this message
testClass is a name of a builtin PHP class, unfortunately. While we may remove it in a future version, please use a different name for now... Zeev At 23:51 08/08/99 , Teodor Cimpoesu wrote:
Shannon Weyrick wrote: hi, came across this whilst playing with some more OO stuff. the following script appears to die after reaching the definition of class testClass - by die, I mean, no code is executed at ALL after it's definition, no errors are reported, and the server returns "Document Contained No Data". Where I have the phpinfo() call in there now, never gets executed. if I uncomment that call directly BEFORE the testClass class definition, however, php info comes back as normal (but the rest of the script doesn't run). the code might or might not be all that practical, but I dont think it's invalid code. but, perhaps I'm missing something? I tested your code w/ display_errors on and error_reporting 65527 this is the error: Fatal error: Cannot redeclare class testclass in /opt/apache2/htdocs/chat/debug/crash.php on line 0 so, report it at bugs.php.net/version4/ [snip] -- CIMPOESU Teodor, Web Programmer @ DIGICOM S.A. Bucharest, Romania @ Internet, site development @ teo@digiro.net,+(401)-330.47.28 official home page ~ http://www.digiro.net/ Internet web page ~ http://internet.digiro.net/ -- PHP 4 Beta
-- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il

« previous php.version4 (#3348) next »