php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #73702
Patch get_resource_type_false revision 2016-12-09 14:21 UTC by martijn at openbsd dot org

Patch get_resource_type_false for Variables related Bug #73702

Patch version 2016-12-09 14:21 UTC

Return to Bug #73702 | Download this patch
Patch Revisions:

Developer: martijn@openbsd.org

--- ./Zend/zend_builtin_functions.c.old	Fri Dec  9 15:16:54 2016
+++ ./Zend/zend_builtin_functions.c	Fri Dec  9 15:05:52 2016
@@ -2022,7 +2022,7 @@
 	zval *z_resource_type;
 
 	if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &z_resource_type) == FAILURE) {
-		return;
+		RETURN_FALSE;
 	}
 
 	resource_type = zend_rsrc_list_get_rsrc_type(Z_RES_P(z_resource_type));
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 22:01:29 2024 UTC