File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / url / bug55273.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, 4 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--
Bug #55273 (base64_decode() with strict rejects whitespace after pad)
--FILE--
<?php
function test($s) {
	$v = chunk_split(base64_encode($s));
	$r = base64_decode($v, True);
	var_dump($v, $r);
}

test('PHP');
test('PH');
test('P');

?>
--EXPECT--
string(6) "UEhQ
"
string(3) "PHP"
string(6) "UEg=
"
string(2) "PH"
string(6) "UA==
"
string(1) "P"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>