1--TEST-- 2Bug #26762 (unserialize() produces lowercase classnames) 3--SKIPIF-- 4<?php 5 if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); 6 if (class_exists('autoload_root')) die('skip Autoload test classes exist already'); 7?> 8--FILE-- 9<?php 10 11ini_set('unserialize_callback_func','check'); 12 13function check($name) { 14 var_dump($name); 15 throw new exception; 16} 17 18try { 19 @unserialize('O:3:"FOO":0:{}'); 20} 21catch (Exception $e) { 22 /* ignore */ 23} 24 25?> 26--EXPECTF-- 27string(3) "FOO" 28