From 11a43f10de5cf7ef6cdc4aba4242fa52c2434687 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 19 Feb 2016 15:44:11 +0300 Subject: [PATCH] Added comments about special functions --- ext/standard/string.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.50.1