tony2001                Tue Jan 22 15:42:12 2008 UTC

  Added files:                 
    /php-src/ext/standard/tests/strings strpos_number.phpt 
  Log:
  new test by Lars Strojny
  
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/strpos_number.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/strings/strpos_number.phpt
+++ php-src/ext/standard/tests/strings/strpos_number.phpt
--TEST--
strpos() matching numbers
--FILE--
<?php
// Integer is handles as an octal representation, so nothing to match
var_dump(strpos("foo 11", 11));
// int(111) is string("o") in octal. Match expected
var_dump(strpos("foo bar", 111));
// string("11") is contained
var_dump(strpos("foo 11", "11"));
?>
--EXPECT--
bool(false)
int(1)
int(4)

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to