version 1.1.1.1, 2012/02/21 23:48:02
|
version 1.1.1.2, 2012/05/29 12:34:43
|
Line 72 PHP_FUNCTION(gettype)
|
Line 72 PHP_FUNCTION(gettype)
|
|
|
case IS_RESOURCE: |
case IS_RESOURCE: |
{ |
{ |
char *type_name; | const char *type_name = zend_rsrc_list_get_rsrc_type(Z_LVAL_PP(arg) TSRMLS_CC); |
type_name = zend_rsrc_list_get_rsrc_type(Z_LVAL_PP(arg) TSRMLS_CC); | |
if (type_name) { |
if (type_name) { |
RETVAL_STRING("resource", 1); |
RETVAL_STRING("resource", 1); |
break; |
break; |
Line 219 static void php_is_type(INTERNAL_FUNCTION_PARAMETERS,
|
Line 219 static void php_is_type(INTERNAL_FUNCTION_PARAMETERS,
|
} |
} |
} |
} |
if (type == IS_RESOURCE) { |
if (type == IS_RESOURCE) { |
char *type_name; | const char *type_name = zend_rsrc_list_get_rsrc_type(Z_LVAL_PP(arg) TSRMLS_CC); |
type_name = zend_rsrc_list_get_rsrc_type(Z_LVAL_PP(arg) TSRMLS_CC); | |
if (!type_name) { |
if (!type_name) { |
RETURN_FALSE; |
RETURN_FALSE; |
} |
} |