]> granicus.if.org Git - php/commitdiff
fixed the test
authorAnatol Belski <ab@php.net>
Thu, 21 Aug 2014 11:49:09 +0000 (13:49 +0200)
committerAnatol Belski <ab@php.net>
Thu, 21 Aug 2014 11:49:09 +0000 (13:49 +0200)
the cause for this to fail now was that _php_iconv_strpos had int for
the offset, but the int from userland is 64 bit, that was an overflow
cusing wrong behaviour

ext/iconv/tests/iconv_strpos_variation3_64bit.phpt

index 1cc8a84f73e89b8c3a2e38c5513bfbb9aa40aef8..f1807ccd79893809af999fbfc601e04c7728ba87 100644 (file)
@@ -130,7 +130,7 @@ Warning: iconv_strpos(): Offset not contained in string. in %s on line %d
 bool(false)
 
 -- Iteration 7 --
-int(8)
+bool(false)
 
 -- Iteration 8 --
 int(8)
@@ -196,4 +196,4 @@ int(8)
 
 Warning: iconv_strpos() expects parameter 3 to be long, resource given in %s on line %d
 bool(false)
-Done
\ No newline at end of file
+Done