1--TEST--
2Bug #37244 (base64_decode violates RFC 3548)
3--FILE--
4<?php
5$strings = array(
6    'SW1wbGVtZW50YXRpb25zIE1VU1QgcmVqZWN0IHRoZSBlbmNvZGluZyBpZiBpdCBjb250YWlucyBjaGFyYWN0ZXJzIG91dHNpZGUgdGhlIGJhc2UgYWxwaGFiZXQu',
7    'SW1wbGVtZW$0YXRpb25zIE1VU1QgcmVqZWN0IHRoZSBlbmNvZGluZyBpZiBpdCBjb250YWlucyBjaGFyYWN0ZXJzIG91dHNpZGUgdGhlIGJhc2UgYWxwaGFiZXQu',
8    'SW1wbGVtZW0YXRpb25zIE1VU1QgcmVqZWN0IHRoZSBlbmNvZGluZyBpZiBpdCBjb250YWlucyBjaGFyYWN0ZXJzIG91dHNpZGUgdGhlIGJhc2UgYWxwaGFiZXQu'
9);
10foreach($strings as $string) {
11    var_dump(base64_decode($string, true));
12}
13?>
14--EXPECT--
15string(93) "Implementations MUST reject the encoding if it contains characters outside the base alphabet."
16bool(false)
17string(92) "Implemem][ۜ�UT��Z�X�H[���[��Y�]�۝Z[���\�X�\���]�YHH�\�H[X�]"
18