]> granicus.if.org Git - php/commitdiff
- In a conditional statement "a ? b ? c", a and b MUST have the same type
authorMarcus Boerger <helly@php.net>
Mon, 3 Oct 2005 19:24:09 +0000 (19:24 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 3 Oct 2005 19:24:09 +0000 (19:24 +0000)
# We should make this an inline function to prevent unnecessary calls to
# get classentry or requir that class_entry must return a valid class_entry
# which we do iirc anyway.

Zend/zend_execute.h

index 309b31d3053fe97d1b31d1b98d30e79781928dc5..7095ac1b155c7f35d653aef3af024bb44be08fa5 100644 (file)
@@ -204,7 +204,7 @@ void zend_shutdown_timeout_thread();
 /* The following tries to resolve the classname of a zval of type object.
  * Since it is slow it should be only used in error messages.
  */
-#define Z_OBJ_CLASS_NAME_P(zval) ((zval) && (zval)->type == IS_OBJECT && Z_OBJ_HT_P(zval)->get_class_entry != NULL && Z_OBJ_HT_P(zval)->get_class_entry(zval TSRMLS_CC) ? Z_OBJ_HT_P(zval)->get_class_entry(zval TSRMLS_CC)->name : EMPTY_STR)
+#define Z_OBJ_CLASS_NAME_P(zval) ((zval) && (zval)->type == IS_OBJECT && Z_OBJ_HT_P(zval)->get_class_entry != NULL && Z_OBJ_HT_P(zval)->get_class_entry(zval TSRMLS_CC) ? Z_OBJ_HT_P(zval)->get_class_entry(zval TSRMLS_CC)->name : (char*)EMPTY_STR)
 
 ZEND_API zval** zend_get_compiled_variable_value(zend_execute_data *execute_data_ptr, zend_uint var);