diff options
author | Sterling Hughes <sterling@php.net> | 2003-06-30 19:40:48 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2003-06-30 19:40:48 +0000 |
commit | c6876a53dfbedcf0c20c32480842f94a309b64e1 (patch) | |
tree | a42b8bf0b8b401a88ab930dbcef673531a03d524 /tests | |
parent | 7a4ed006038daaa28d7dce11ccc32a365ecbc504 (diff) | |
download | php-git-c6876a53dfbedcf0c20c32480842f94a309b64e1.tar.gz |
test for bug #24399, segfault in is_subclass_of()
Diffstat (limited to 'tests')
-rw-r--r-- | tests/classes/bug24399.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/classes/bug24399.phpt b/tests/classes/bug24399.phpt new file mode 100644 index 0000000000..f0cf9edb7b --- /dev/null +++ b/tests/classes/bug24399.phpt @@ -0,0 +1,14 @@ +--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) |