[PHP4BETA] breaking compatibility

From: Date: Sat, 17 Apr 1999 01:18:47 +0000
Subject: [PHP4BETA] breaking compatibility
Groups: php.version4 
Request: Send a blank email to php-version4+get-144@lists.php.net to get a copy of this message
<?php $o = new foobar; print gettype($o); ?> Echos "object of type foobar". PHP3 echoed "object". All programs <?php switch gettype($var) { case "object": [...] break; } ?> will break. Moreover: the new output is ugly to process. One has to explode() the result of gettype now, in order to get processable data. A distinct classname() or classtype() function would be better, imo. Boris -- PHP 4 Beta

« previous php.version4 (#144) next »