File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
standard /
tests /
serialize /
006.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:04 2012 UTC (12 years, 8 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
serialize()/unserialize() with exotic letters
--FILE--
<?php
$εδφΕΔΦ = array('εδφΕΔΦ' => 'εδφΕΔΦ');
class άberKφφliδε
{
public $εδφΕΔΦόάber = 'εδφΕΔΦ';
}
$foo = new άberkφφliδε();
var_dump(serialize($foo));
var_dump(unserialize(serialize($foo)));
var_dump(serialize($εδφΕΔΦ));
var_dump(unserialize(serialize($εδφΕΔΦ)));
?>
--EXPECT--
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) "εδφΕΔΦ"
}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>