]> granicus.if.org Git - php/commitdiff
Another operators fix
authorZeev Suraski <zeev@php.net>
Mon, 24 May 1999 16:43:47 +0000 (16:43 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 24 May 1999 16:43:47 +0000 (16:43 +0000)
Zend/zend_operators.c

index 59176bb1f807877b37c566aa74762d243039bca8..3a18e94b242c9725ce40cd9a86ceb86e27691715 100644 (file)
@@ -66,6 +66,10 @@ ZEND_API void convert_scalar_to_number(zval *op)
                        case IS_BC: \
                                (holder).type = IS_DOUBLE; /* may have lost significant digits */ \
                                break; \
+                       case IS_RESOURCE: \
+                       case IS_BOOL: \
+                               (holder).type = IS_LONG; \
+                               break; \
                        default: \
                                (holder).value.lval = strtol((op)->value.str.val, NULL, 10); \
                                (holder).type = IS_LONG; \