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

1.1       misho       1: --TEST--
                      2: strpos() matching numbers
                      3: --FILE--
                      4: <?php
                      5: // Integer is handles as an octal representation, so nothing to match
                      6: var_dump(strpos("foo 11", 11));
                      7: // int(111) is string("o") in octal. Match expected
                      8: var_dump(strpos("foo bar", 111));
                      9: // string("11") is contained
                     10: var_dump(strpos("foo 11", "11"));
                     11: ?>
                     12: --EXPECT--
                     13: bool(false)
                     14: int(1)
                     15: int(4)

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