summaryrefslogtreecommitdiff
path: root/ext/standard/tests/url/bug52327.phpt
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2010-11-26 20:59:13 +0000
committerIlia Alshanetsky <iliaa@php.net>2010-11-26 20:59:13 +0000
commit4bc5cac3175720b4c91866e850e7cbcf828c66f8 (patch)
tree0d4e9cca3f2c896781c14583d6e7ea7b12c9dea5 /ext/standard/tests/url/bug52327.phpt
parent722457594b6d250ddd35329632e1f2dfb30e1a8d (diff)
downloadphp-git-4bc5cac3175720b4c91866e850e7cbcf828c66f8.tar.gz
Fixed bug #52327 (base64_decode() improper handling of leading padding in strict mode)
Diffstat (limited to 'ext/standard/tests/url/bug52327.phpt')
-rw-r--r--ext/standard/tests/url/bug52327.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/standard/tests/url/bug52327.phpt b/ext/standard/tests/url/bug52327.phpt
new file mode 100644
index 0000000000..fb2e0fa25b
--- /dev/null
+++ b/ext/standard/tests/url/bug52327.phpt
@@ -0,0 +1,12 @@
+--TEST--
+Bug #52327 (base64_decode() improper handling of leading padding)
+--FILE--
+<?php
+var_dump(
+ base64_decode('=VGhl=ICc9=JyBz=eW1i=b2xz=IGFy=ZW4n=dCBh=bGxv=d2Vk=IHdo=ZXJl=IGkg=cHV0=IHRo=ZW0g=by5P'),
+ base64_decode('=VGhl=ICc9=JyBz=eW1i=b2xz=IGFy=ZW4n=dCBh=bGxv=d2Vk=IHdo=ZXJl=IGkg=cHV0=IHRo=ZW0g=by5P', true)
+);
+?>
+--EXPECT--
+string(51) "The '=' symbols aren't allowed where i put them o.O"
+bool(false)