Annotation of embedaddon/php/ext/standard/tests/strings/bug60965.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #60965: Buffer overflow on htmlspecialchars/entities with $double=false
                      3: --FILE--
                      4: <?php
                      5: echo htmlspecialchars('"""""""""""""""""""""""""""""""""""""""""""""&#x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;',
                      6: ENT_QUOTES, 'UTF-8', false), "\n";
                      7: echo "Done.\n";
                      8: --EXPECT--
                      9: &quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot;&#x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005;
                     10: Done.

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