PHP  
 PHP_5_6
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Expected Test Failure Report for ext/standard/tests/strings/bug72663_3.phpt ('Bug #72663: Create an Unexpected Object and Don't Invoke __wakeup() in Deserialization')

Script

1: <?php
2:
class obj {
3:     var 
$ryat;
4:     function 
__wakeup() {
5:         
$this->ryat str_repeat('A'0x112);
6:     }
7: }
8:
9:
$poc 'O:8:"stdClass":1:{i:0;O:3:"obj":1:{s:4:"ryat";R:1;';
10:
unserialize($poc);
11:
?>
12:
DONE
13:

Expected

Notice: unserialize(): Error at offset 51 of 50 bytes in %sbug72663_3.php on line %d
DONE

Output

Notice: unserialize(): Error at offset 50 of 50 bytes in /var/php_gcov/PHP_5_6/ext/standard/tests/strings/bug72663_3.php on line 10
DONE

Diff

001+ Notice: unserialize(): Error at offset 50 of 50 bytes in /var/php_gcov/PHP_5_6/ext/standard/tests/strings/bug72663_3.php on line 10
001- Notice: unserialize(): Error at offset 51 of 50 bytes in %sbug72663_3.php on line %d

 

Generated at Fri, 10 Nov 2017 14:18:45 +0000 (7 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.