From: Antony Dovgal Date: Wed, 5 Apr 2006 12:29:21 +0000 (+0000) Subject: add test X-Git-Tag: php-5.1.3RC3~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0592d17e9542e2cea0088c133a58cc11d4edf08;p=php add test --- diff --git a/ext/standard/tests/strings/bug36944.phpt b/ext/standard/tests/strings/bug36944.phpt new file mode 100644 index 0000000000..bbcc8a2c59 --- /dev/null +++ b/ext/standard/tests/strings/bug36944.phpt @@ -0,0 +1,26 @@ +--TEST-- +fix #36944 (strncmp & strncasecmp do not return false on negative string length) +--FILE-- + +--EXPECTF-- +Warning: Length must be greater than or equal to 0 in %s on line %d +bool(false) +int(1) +int(0) + +Warning: Length must be greater than or equal to 0 in %s on line %d +bool(false) +int(15) +int(0) +Done