php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch disable-functions.patch for Reflection related Bug #55101

Patch version 2011-08-30 13:13 UTC

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

Developer: bjori@php.net

Index: main/main.c
===================================================================
--- main/main.c	(revision 315756)
+++ main/main.c	(working copy)
@@ -121,7 +121,7 @@
 
 	if (EG(windows_version_info).dwMajorVersion < 5) {
 		for (i = 0; i < function_name_cnt_5; i++) {
-			if (zend_hash_del(CG(function_table), function_name_5[i], strlen(function_name_5[i]) + 1)==FAILURE) {
+			if (zend_disable_function(function_name_5[i], strlen(function_name_5[i]) + 1  TSRMLS_CC) == FAILURE) {
 				php_printf("Unable to disable function '%s'\n", function_name_5[i]);
 				return FAILURE;
 			}
@@ -130,7 +130,7 @@
 
 	if (EG(windows_version_info).dwMajorVersion < 6) {
 		for (i = 0; i < function_name_cnt_6; i++) {
-			if (zend_hash_del(CG(function_table), function_name_6[i], strlen(function_name_6[i]) + 1)==FAILURE) {
+			if (zend_disable_function(function_name_6[i], strlen(function_name_6[i]) + 1  TSRMLS_CC) == FAILURE) {
 				php_printf("Unable to disable function '%s'\n", function_name_6[i]);
 				return FAILURE;
 			}
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jan 21 05:01:23 2020 UTC