com php-src: Added comments about special functions: ext/standard/string.c
| From: | Dmitry Stogov | Date: | Fri, 19 Feb 2016 12:44:11 +0000 |
| Subject: | com php-src: Added comments about special functions: ext/standard/string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91116@lists.php.net to get a copy of this message | ||
Commit: 11a43f10de5cf7ef6cdc4aba4242fa52c2434687
Author: Dmitry Stogov <dmitry@zend.com> Fri, 19 Feb 2016 15:44:11 +0300
Parents: dc33c79a65859d29ea878fb8d8437b7b9cbc0461
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=11a43f10de5cf7ef6cdc4aba4242fa52c2434687
Log:
Added comments about special functions
Changed paths:
M ext/standard/string.c
Diff:
diff --git a/ext/standard/string.c b/ext/standard/string.c
index 3ac3614..82aa97e 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -2740,7 +2740,8 @@ PHP_FUNCTION(quotemeta)
/* }}} */
/* {{{ proto int ord(string character)
- Returns ASCII value of character */
+ Returns ASCII value of character
+ Warning: This function is special-cased by zend_compile.c and so is bypassed for constant string
argument */
PHP_FUNCTION(ord)
{
char *str;
@@ -2761,7 +2762,8 @@ PHP_FUNCTION(ord)
/* }}} */
/* {{{ proto string chr(int ascii)
- Converts ASCII code to a character */
+ Converts ASCII code to a character
+ Warning: This function is special-cased by zend_compile.c and so is bypassed for constant
integer argument */
PHP_FUNCTION(chr)
{
zend_long c;