com php-src: fix macros: ext/standard/string.c

From: Date: Fri, 28 Feb 2014 18:19:32 +0000
Subject: com php-src: fix macros: ext/standard/string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76282@lists.php.net to get a copy of this message
Commit: 65f17d672d84729e399cc28748413cf4a29e0c4c Author: Anatol Belski <ab@php.net> Fri, 28 Feb 2014 19:19:32 +0100 Parents: 28dbadeb1df3072e67375e2d01fdee6b60201408 Branches: str_size_and_int64_56_backport Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=65f17d672d84729e399cc28748413cf4a29e0c4c Log: fix macros Changed paths: M ext/standard/string.c Diff: diff --git a/ext/standard/string.c b/ext/standard/string.c index 4516111..a98cbe9 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -5608,9 +5608,9 @@ PHP_FUNCTION(substr_compare) } if (!cs) { - RETURN_LONG(zend_binary_strncmp(s1 + offset, (s1_len - offset), s2, s2_len, (php_size_t)len)); + RETURN_INT(zend_binary_strncmp(s1 + offset, (s1_len - offset), s2, s2_len, (php_size_t)len)); } else { - RETURN_LONG(zend_binary_strncasecmp_l(s1 + offset, (s1_len - offset), s2, s2_len, (php_size_t)len)); + RETURN_INT(zend_binary_strncasecmp_l(s1 + offset, (s1_len - offset), s2, s2_len, (php_size_t)len)); } } /* }}} */

« previous php.cvs (#76282) next »