From: Dmitry Stogov Date: Fri, 19 Feb 2016 12:44:11 +0000 (+0300) Subject: Added comments about special functions X-Git-Tag: php-7.1.0alpha1~593 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11a43f10de5cf7ef6cdc4aba4242fa52c2434687;p=php Added comments about special functions --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 3ac3614ac9..82aa97e8cd 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;