version 1.1.1.1, 2012/02/21 23:48:02
|
version 1.1.1.3, 2013/07/22 01:32:05
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2013 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| This source file is subject to version 3.01 of the PHP license, | |
| that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
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; |
} |
} |