php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61622
Patch conditional-safe-mode.diff revision 2012-06-16 12:29 UTC by jille at hexon dot cx
Patch remove-safe-mode.diff revision 2012-04-10 12:11 UTC by jille at hexon dot cx

Patch remove-safe-mode.diff for dbase Bug #61622

Patch version 2012-04-10 12:11 UTC

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

Obsoleted by patches:

Patch Revisions:

Developer: jille@hexon.cx

Index: ext/dbase/dbase.c
===================================================================
--- ext/dbase/dbase.c
+++ ext/dbase/dbase.c
@@ -23,7 +23,6 @@
 #endif
 
 #include "php.h"
-#include "safe_mode.h"
 #include "fopen_wrappers.h"
 #include "php_globals.h"
 
@@ -142,10 +141,6 @@
 		RETURN_FALSE;
 	}
 
-	if (PG(safe_mode) && (!php_checkuid(Z_STRVAL_PP(dbf_name), NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
-		RETURN_FALSE;
-	}
-	
 	if (php_check_open_basedir(Z_STRVAL_PP(dbf_name) TSRMLS_CC)) {
 		RETURN_FALSE;
 	}
@@ -604,10 +599,6 @@
 		RETURN_FALSE;
 	}
 
-	if (PG(safe_mode) && (!php_checkuid(Z_STRVAL_PP(filename), NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
-		RETURN_FALSE;
-	}
-	
 	if (php_check_open_basedir(Z_STRVAL_PP(filename) TSRMLS_CC)) {
 		RETURN_FALSE;
 	}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 11:01:30 2024 UTC