mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
optimize loops. The check only exists for integers because that's the more
common optimization, and you actually lose performance if you check for a double too (wierd but true).
This commit is contained in:
parent
7b26ddd9b0
commit
5619166fe4
1 changed files with 3 additions and 1 deletions
|
@ -144,7 +144,9 @@ ZEND_API void convert_scalar_to_number(zval *op TSRMLS_DC)
|
|||
|
||||
#define zendi_convert_scalar_to_number(op, holder, result) \
|
||||
if (op==result) { \
|
||||
convert_scalar_to_number(op TSRMLS_CC); \
|
||||
if (op->type != IS_LONG) { \
|
||||
convert_scalar_to_number(op TSRMLS_CC); \
|
||||
} \
|
||||
} else { \
|
||||
switch ((op)->type) { \
|
||||
case IS_STRING: \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue