xref: /PHP-7.4/ext/standard/tests/url/bug52327.phpt (revision 4bc5cac3)
1--TEST--
2Bug #52327 (base64_decode() improper handling of leading padding)
3--FILE--
4<?php
5var_dump(
6	base64_decode('=VGhl=ICc9=JyBz=eW1i=b2xz=IGFy=ZW4n=dCBh=bGxv=d2Vk=IHdo=ZXJl=IGkg=cHV0=IHRo=ZW0g=by5P'),
7	base64_decode('=VGhl=ICc9=JyBz=eW1i=b2xz=IGFy=ZW4n=dCBh=bGxv=d2Vk=IHdo=ZXJl=IGkg=cHV0=IHRo=ZW0g=by5P', true)
8);
9?>
10--EXPECT--
11string(51) "The '=' symbols aren't allowed where i put them o.O"
12bool(false)
13