]> granicus.if.org Git - php/commitdiff
Test for bug #34214
authorfoobar <sniper@php.net>
Tue, 23 Aug 2005 21:39:39 +0000 (21:39 +0000)
committerfoobar <sniper@php.net>
Tue, 23 Aug 2005 21:39:39 +0000 (21:39 +0000)
ext/standard/tests/strings/bug34214.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/strings/bug34214.phpt b/ext/standard/tests/strings/bug34214.phpt
new file mode 100644 (file)
index 0000000..dc2eb45
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+Bug #34214 (base64_decode() does not properly ignore whitespace)
+--FILE--
+<?php
+$txt = 'Zm9vYmFyIG
+ Zvb2Jhcg==';
+echo base64_decode($txt), "\n";
+?>
+--EXPECT--
+foobar foobar