Skip to content

Commit

Permalink
MFB53: Changed deprecated ini options on startup from E_WARNING to E_…
Browse files Browse the repository at this point in the history
…DEPRECATED (Fixes #52570)

# Some of the updated tests were to make them sync with 5.3 although they don't run on trunk anymore
  • Loading branch information
KalleZ committed Aug 11, 2010
1 parent f48999c commit a448b6a
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion ext/curl/tests/curl_setopt_basic001.phpt
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ext/dba/tests/dba_cdb_make.phpt
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion ext/exif/tests/exif006.phpt
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion ext/filter/tests/bug39763.phpt
Expand Up @@ -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\"
2 changes: 1 addition & 1 deletion ext/pcre/tests/bug33200.phpt
Expand Up @@ -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
2 changes: 1 addition & 1 deletion ext/posix/tests/posix_access.phpt
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ext/posix/tests/posix_access_error_modes.phpt
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ext/posix/tests/posix_access_error_wrongparams.phpt
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ext/posix/tests/posix_access_safemode.phpt
Expand Up @@ -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===
2 changes: 1 addition & 1 deletion ext/posix/tests/posix_mkfifo_safemode.phpt
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ext/session/tests/007.phpt
Expand Up @@ -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)
Expand Down
Expand Up @@ -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"

2 changes: 1 addition & 1 deletion ext/standard/tests/strings/parse_str_basic3.phpt
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main/main.c
Expand Up @@ -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",
Expand Down

0 comments on commit a448b6a

Please sign in to comment.