diff options
author | Marcus Boerger <helly@php.net> | 2004-01-02 03:24:38 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-01-02 03:24:38 +0000 |
commit | 3ab7b87143a0712bcac5bfe65dbe0b726be93f85 (patch) | |
tree | fd87ef1945745a14d83acd3082cf246d77cd71a7 /ext/standard | |
parent | 926504978bcf69af2c1897ead450c094906c99f9 (diff) | |
download | php-git-3ab7b87143a0712bcac5bfe65dbe0b726be93f85.tar.gz |
Add new test
Diffstat (limited to 'ext/standard')
-rwxr-xr-x | ext/standard/tests/serialize/bug26762.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/standard/tests/serialize/bug26762.phpt b/ext/standard/tests/serialize/bug26762.phpt new file mode 100755 index 0000000000..3011bb602c --- /dev/null +++ b/ext/standard/tests/serialize/bug26762.phpt @@ -0,0 +1,27 @@ +--TEST-- +Bug #26762 (unserialize() produces lowercase classnames) +--SKIPIF-- +<?php + if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); + if (class_exists('autoload_root')) die('skip Autoload test classes exist already'); +?> +--FILE-- +<?php + +ini_set('unserialize_callback_func','check'); + +function check($name) { + var_dump($name); + throw new exception; +} + +try { + @unserialize('O:3:"FOO":0:{}'); +} +catch (Exception $e) { + /* ignore */ +} + +?> +--EXPECTF-- +string(3) "FOO" |