summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2017-11-17 18:19:32 +0100
committerAnatol Belski <ab@php.net>2017-11-17 18:19:32 +0100
commit24356e307caf7c498aeafe60efff1a93aeaf39ba (patch)
tree37cbbfae319b37c221aa812687959a3673357e73
parent261ed5d2ec851c07a98550e82c2279a25df9c67f (diff)
downloadphp-git-24356e307caf7c498aeafe60efff1a93aeaf39ba.tar.gz
Fix condition
-rw-r--r--Zend/zend_operators.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h
index 9d9e2055a5..913ab710c4 100644
--- a/Zend/zend_operators.h
+++ b/Zend/zend_operators.h
@@ -193,7 +193,7 @@ zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const
static zend_always_inline const void *zend_memrchr(const void *s, int c, size_t n)
{
const unsigned char *e;
- if (n <= 0) {
+ if (0 == n) {
return NULL;
}