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

Test Failure Report for ext/standard/tests/serialize/006.phpt ('serialize()/unserialize() with exotic letters')

Script

1: <?php
2:     $εδφΕΔΦ 
= array('εδφΕΔΦ' => 'εδφΕΔΦ');
3:
4:     class 
άberKφφliδε 
5:     
{
6:         public 
$εδφΕΔΦόάber 'εδφΕΔΦ';
7:     }
8:   
9:     
$foo = new άberkφφliδε();
10:   
11:     
var_dump(serialize($foo));
12:     
var_dump(unserialize(serialize($foo)));
13:     
var_dump(serialize($εδφΕΔΦ));
14:     
var_dump(unserialize(serialize($εδφΕΔΦ)));
15:
?>
16:

Expected

string(55) "O:11:"άberKφφliδε":1:{s:11:"εδφΕΔΦόάber";s:6:"εδφΕΔΦ";}"
object(άberKφφliδε)#2 (1) {
  ["εδφΕΔΦόάber"]=>
  string(6) "εδφΕΔΦ"
}
string(32) "a:1:{s:6:"εδφΕΔΦ";s:6:"εδφΕΔΦ";}"
array(1) {
  ["εδφΕΔΦ"]=>
  string(6) "εδφΕΔΦ"
}

Output

string(55) "O:11:"άberKφφliδε":1:{s:11:"εδφΕΔΦόάber";s:6:"εδφΕΔΦ";}"

Notice: unserialize(): Error at offset 6 of 55 bytes in /var/php_gcov/PHP_5_6/ext/standard/tests/serialize/006.php on line 12
bool(false)
string(32) "a:1:{s:6:"εδφΕΔΦ";s:6:"εδφΕΔΦ";}"
array(1) {
  ["εδφΕΔΦ"]=>
  string(6) "εδφΕΔΦ"
}

Diff

002+ 
003+ Notice: unserialize(): Error at offset 6 of 55 bytes in /var/php_gcov/PHP_5_6/ext/standard/tests/serialize/006.php on line 12
004+ bool(false)
002- object(άberKφφliδε)#2 (1) {
003-   ["εδφΕΔΦόάber"]=>
004-   string(6) "εδφΕΔΦ"
005- }

 

Generated at Mon, 16 Apr 2018 16:12:41 +0000 (8 days ago)

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