1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/standard/tests/strings/bug72663_3.phpt
2025-10-06 10:30:27 +02:00

19 lines
396 B
PHP

--TEST--
Bug #72663: Create an Unexpected Object and Don't Invoke __wakeup() in Deserialization
--FILE--
<?php
class obj {
var $ryat;
function __wakeup() {
$this->ryat = str_repeat('A', 0x112);
}
}
$poc = 'O:8:"stdClass":1:{i:0;O:3:"obj":1:{s:4:"ryat";R:1;';
unserialize($poc);
?>
DONE
--EXPECTF--
Warning: unserialize(): Error at offset 50 of 50 bytes in %s on line %d
DONE