php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55371
Patch bug55371.patch revision 2011-11-12 11:21 UTC by david dot zuelke at bitextender dot com
revision 2011-11-12 11:04 UTC by david dot zuelke at bitextender dot com

Patch bug55371.patch for Safe Mode/open_basedir Bug #55371

Patch version 2011-11-12 11:04 UTC

Return to Bug #55371 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: david.zuelke@bitextender.com

Index: ext/standard/basic_functions.c
===================================================================
--- ext/standard/basic_functions.c	(revision 319095)
+++ ext/standard/basic_functions.c	(working copy)
@@ -2959,8 +2959,8 @@
 
 	PHP_DEP_FALIAS(magic_quotes_runtime,	set_magic_quotes_runtime,		arginfo_set_magic_quotes_runtime)
 	PHP_DEP_FE(set_magic_quotes_runtime,									arginfo_set_magic_quotes_runtime)
-	PHP_DEP_FE(get_magic_quotes_gpc,										arginfo_get_magic_quotes_gpc)
-	PHP_DEP_FE(get_magic_quotes_runtime,									arginfo_get_magic_quotes_runtime)
+	PHP_FE(get_magic_quotes_gpc,										arginfo_get_magic_quotes_gpc)
+	PHP_FE(get_magic_quotes_runtime,									arginfo_get_magic_quotes_runtime)
 
 	PHP_FE(error_log,														arginfo_error_log)
 	PHP_FE(error_get_last,													arginfo_error_get_last)
Index: ext/standard/tests/general_functions/bug55371.phpt
===================================================================
--- ext/standard/tests/general_functions/bug55371.phpt	(revision 0)
+++ ext/standard/tests/general_functions/bug55371.phpt	(revision 0)
@@ -0,0 +1,10 @@
+--TEST--
+Bug #55371 (get_magic_quotes_gpc() and get_magic_quotes_runtime() throw deprecated warning)
+--FILE--
+<?php
+
+get_magic_quotes_gpc();
+get_magic_quotes_runtime();
+
+?>
+--EXPECT--
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 04:01:33 2024 UTC