FAQ
msopacua Sat Oct 26 16:07:26 2002 EDT

Added files:
/php4/ext/standard/tests/strings bug20108.phpt
Log:
Test for bug in sprintf

# 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



Index: php4/ext/standard/tests/strings/bug20108.phpt
+++ php4/ext/standard/tests/strings/bug20108.phpt
--TEST--
Segfault on prinft statement Bug #20108
--SKIPIF--
--FILE--
<?php $a = "boo"; printf("%580.58s\n", $a); ?>
--EXPECT--
I have no idea yet :)

Search Discussions

  • Derick Rethans at Oct 26, 2002 at 8:09 pm
    derick Sat Oct 26 16:09:15 2002 EDT

    Modified files:
    /php4/ext/standard/tests/strings bug20108.phpt
    Log:
    - Fix typoes


    Index: php4/ext/standard/tests/strings/bug20108.phpt
    diff -u php4/ext/standard/tests/strings/bug20108.phpt:1.1 php4/ext/standard/tests/strings/bug20108.phpt:1.2
    --- php4/ext/standard/tests/strings/bug20108.phpt:1.1 Sat Oct 26 16:07:26 2002
    +++ php4/ext/standard/tests/strings/bug20108.phpt Sat Oct 26 16:09:15 2002
    @@ -1,5 +1,5 @@
    --TEST--
    -Segfault on prinft statement Bug #20108
    +Segfault on printf statement bug #20108
    --SKIPIF--
    --FILE--
    <?php $a = "boo"; printf("%580.58s\n", $a); ?>
  • Ilia Alshanetsky at Oct 26, 2002 at 8:55 pm
    iliaa Sat Oct 26 16:55:48 2002 EDT

    Modified files:
    /php4/ext/standard/tests/strings bug20108.phpt
    Log:
    Added expected output.


    Index: php4/ext/standard/tests/strings/bug20108.phpt
    diff -u php4/ext/standard/tests/strings/bug20108.phpt:1.2 php4/ext/standard/tests/strings/bug20108.phpt:1.3
    --- php4/ext/standard/tests/strings/bug20108.phpt:1.2 Sat Oct 26 16:09:15 2002
    +++ php4/ext/standard/tests/strings/bug20108.phpt Sat Oct 26 16:55:48 2002
    @@ -2,6 +2,11 @@
    Segfault on printf statement bug #20108
    --SKIPIF--
    --FILE--
    -<?php $a = "boo"; printf("%580.58s\n", $a); ?>
    +<?php
    + $a = "boo";
    + $z = sprintf("%580.58s\n", $a);
    + var_dump($z);
    +?>
    --EXPECT--
    -I have no idea yet :)
    +string(581) " boo
    +"

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedOct 26, '02 at 8:07p
activeOct 26, '02 at 8:55p
posts3
users3
websitephp.net

People

Translate

site design / logo © 2019 Grokbase