mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
99 lines
7.1 KiB
PHP
99 lines
7.1 KiB
PHP
--TEST--
|
|
quoted_printable_encode() tests - 2
|
|
--FILE--
|
|
<?php
|
|
|
|
$s = str_repeat("\0", 200);
|
|
var_dump($d = quoted_printable_encode($s));
|
|
var_dump(quoted_printable_decode($d));
|
|
|
|
$s = str_repeat("строка в юникоде", 50);
|
|
var_dump($d = quoted_printable_encode($s));
|
|
var_dump(quoted_printable_decode($d));
|
|
|
|
class foo {
|
|
function __toString() {
|
|
return "this is a foo";
|
|
}
|
|
}
|
|
|
|
$o = new Foo;
|
|
var_dump(quoted_printable_encode($o));
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECT--
|
|
string(621) "=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
|
|
=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
|
|
=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
|
|
=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
|
|
=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
|
|
=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
|
|
=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=
|
|
=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00=00"
|
|
string(200) " |