mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
MFB53: Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED (Fixes #52570)
# Some of the updated tests were to make them sync with 5.3 although they don't run on trunk anymore
This commit is contained in:
parent
f48999ca3b
commit
a448b6a72b
14 changed files with 14 additions and 14 deletions
|
@ -27,7 +27,7 @@ curl_close($ch);
|
|||
var_dump( $curl_content );
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
*** Testing curl_setopt with CURLOPT_FOLLOWLOCATION in safemode
|
||||
|
||||
Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in %s on line %d
|
||||
|
|
|
@ -37,7 +37,7 @@ magic_quotes_runtime=1
|
|||
require(dirname(__FILE__) .'/clean.inc');
|
||||
?>
|
||||
--EXPECT--
|
||||
Warning: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
Deprecated: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
database handler: cdb_make
|
||||
string(32) "12fc5ba2b9dcfef2480e5324eeb5f3e5"
|
||||
string(32) "12fc5ba2b9dcfef2480e5324eeb5f3e5"
|
||||
|
|
|
@ -20,7 +20,7 @@ magic_quotes_runtime=1
|
|||
var_dump(exif_read_data(dirname(__FILE__).'/test6.jpg','',true,false));
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
Deprecated: Directive 'magic_quotes_runtime' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
array(5) {
|
||||
["FILE"]=>
|
||||
array(6) {
|
||||
|
|
|
@ -12,6 +12,6 @@ parse_str("val=%22probably+a+bug%22");
|
|||
echo $val . "\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
\"probably a bug\"
|
||||
\"probably a bug\"
|
|
@ -9,5 +9,5 @@ $str = preg_replace("/(some.*text)/e", "strtoupper('\\1')", $str);
|
|||
echo $str . "\r\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
Warning: Directive 'magic_quotes_sybase' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
Deprecated: Directive 'magic_quotes_sybase' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
SOME '$SAMPLE' TEXT
|
||||
|
|
|
@ -46,7 +46,7 @@ chmod ($filename, 0700);
|
|||
unlink($filename);
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d
|
||||
Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d
|
||||
bool(true)
|
||||
bool(true)
|
||||
bool(true)
|
||||
|
|
|
@ -40,7 +40,7 @@ chmod ($filename, 0700);
|
|||
unlink($filename);
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line %d
|
||||
WDeprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line %d
|
||||
bool(false)
|
||||
bool(false)
|
||||
bool(false)
|
||||
|
|
|
@ -31,7 +31,7 @@ var_dump(posix_access('./foobar'));
|
|||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
|
||||
Warning: posix_access() expects at least 1 parameter, 0 given in %s on line %d
|
||||
bool(false)
|
||||
|
|
|
@ -22,6 +22,6 @@ var_dump(posix_access('/tmp', POSIX_W_OK));
|
|||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d
|
||||
Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d
|
||||
bool(false)
|
||||
===DONE===
|
||||
|
|
|
@ -39,7 +39,7 @@ unlink($dir . '/bar');
|
|||
rmdir($dir);
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d
|
||||
Deprecated: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in %s on line %d
|
||||
|
||||
Warning: posix_mkfifo(): SAFE MODE Restriction in effect. The script whose uid is %d is not allowed to access /tmp owned by uid %d in %s on line %d
|
||||
bool(false)
|
||||
|
|
|
@ -47,7 +47,7 @@ var_dump($_SESSION);
|
|||
session_destroy();
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
Deprecated: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
|
||||
Deprecated: Function session_register() is deprecated in %s on line %d
|
||||
float(3.14)
|
||||
|
|
|
@ -14,7 +14,7 @@ var_dump(get_cfg_var( 'magic_quotes_gpc' ) );
|
|||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in %s on line 0
|
||||
Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in %s on line 0
|
||||
*** Test by calling method or function with deprecated option ***
|
||||
string(1) "1"
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ var_dump($res);
|
|||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
Deprecated: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
|
||||
*** Testing parse_str() : basic functionality ***
|
||||
|
||||
Test string with array values
|
||||
|
|
|
@ -2103,7 +2103,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
|
|||
const char *directives[13]; /* Remember to change this if the number of directives change */
|
||||
} directives[2] = {
|
||||
{
|
||||
E_CORE_WARNING,
|
||||
E_DEPRECATED,
|
||||
"Directive '%s' is deprecated in PHP 5.3 and greater",
|
||||
{
|
||||
"magic_quotes_gpc",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue