]> granicus.if.org Git - php/commitdiff
Test for bug in sprintf
authorMelvyn Sopacua <msopacua@php.net>
Sat, 26 Oct 2002 20:07:26 +0000 (20:07 +0000)
committerMelvyn Sopacua <msopacua@php.net>
Sat, 26 Oct 2002 20:07:26 +0000 (20:07 +0000)
# Doesn't segfault for me, but gives a lot of garbage, so I really don't
# know what the output should be. Results posted to QA

ext/standard/tests/strings/bug20108.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/strings/bug20108.phpt b/ext/standard/tests/strings/bug20108.phpt
new file mode 100644 (file)
index 0000000..4fa4dbe
--- /dev/null
@@ -0,0 +1,7 @@
+--TEST--
+Segfault on prinft statement Bug #20108
+--SKIPIF--
+--FILE--
+<?php $a = "boo"; printf("%580.58s\n", $a); ?>
+--EXPECT--
+I have no idea yet :)