Grokbase Groups PHP php-cvs June 2003
FAQ
sterling Mon Jun 30 15:40:48 2003 EDT

Added files:
/php-src/tests/classes bug24399.phpt
Log:
test for bug #24399, segfault in is_subclass_of()



Index: php-src/tests/classes/bug24399.phpt
+++ php-src/tests/classes/bug24399.phpt
--TEST--
Bug #24399: is_subclass_of() crashes when parent class doesn't exist.
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php
class dooh {
var $blah;
}
$d = new dooh;
var_dump(is_subclass_of($d, 'dooh'));
?>
--EXPECT--
bool(false)

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedJun 30, '03 at 7:40p
activeJun 30, '03 at 7:40p
posts1
users1
websitephp.net

1 user in discussion

Sterling Hughes: 1 post

People

Translate

site design / logo © 2019 Grokbase