com php-src: Add hinting: Zend/zend_operators.c
| From: | Xinchen Hui | Date: | Tue, 13 Jan 2015 03:06:40 +0000 |
| Subject: | com php-src: Add hinting: Zend/zend_operators.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84077@lists.php.net to get a copy of this message | ||
Commit: 2d8fd4b33553605f21b584b5ef6b0a287e9f21a9
Author: Xinchen Hui <laruence@php.net> Mon, 12 Jan 2015 22:06:40 -0500
Parents: dbe66fb2cf1d413268e66117b5b9be489e1a5b5d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2d8fd4b33553605f21b584b5ef6b0a287e9f21a9
Log:
Add hinting
Changed paths:
M Zend/zend_operators.c
Diff:
diff --git a/Zend/zend_operators.c b/Zend/zend_operators.c
index 3bbe0ce..7ce8664 100644
--- a/Zend/zend_operators.c
+++ b/Zend/zend_operators.c
@@ -2843,7 +2843,7 @@ ZEND_API const char* zend_memnrstr_ex(const char *haystack, const char
*needle,
return (const char *)p;
}
- if (p == haystack) {
+ if (UNEXPECTED(p == haystack)) {
return NULL;
}