-PHP NEWS
+PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 200?, PHP 5.3.0 RC 2
- Upgraded bundled sqlite to version 3.6.13. (Ilia)
disable this behaviour using "http"=>array("auto_decode"=>0) in stream
context. (Dmitry)
- Added ability to throw exceptions from SQLite3 instead of warnings. (Scott)
+- Added startup notices for deprecated ini settings. (Kalle)
- Fixed bug #48087 (call_user_method() invalid free of arguments). (Felipe)
- Fixed bug #48060 (pdo_pgsql - large objects are returned as empty). (Matteo)
--EXPECT--
\"probably a bug\"
\"probably a bug\"
+PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
\ No newline at end of file
unsafe_raw
1\0
+PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
<?php
$str = 'some \'$sample\' text';
$str = preg_replace("/(some.*text)/e", "strtoupper('\\1')", $str);
-echo $str;
+echo $str . "\r\n";
?>
--EXPECT--
SOME '$SAMPLE' TEXT
+PHP Warning: Directive 'magic_quotes_sybase' is deprecated in PHP 5.3 and greater in Unknown on line 0
Deprecated: Function session_register() is deprecated in %s on line %d
baz|O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}arr|a:1:{i:3;O:3:"foo":2:{s:3:"bar";s:2:"ok";s:3:"yes";s:4:"done";}}
-
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
int(2)
}
}
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
}
}
DESTROY: abtest
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
int(123)
DESTROY: abtest
CLOSE
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
string(5) "hallo"
}
}
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
["c"]=>
&float(3.14)
}
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
+PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
["c"]=>
float(3.14)
}
+PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
}
array(0) {
}
+PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
--EXPECTF--
Deprecated: Function session_register() is deprecated in %s on line %d
I live
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
?>
--EXPECT--
I live
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in %s on line %d
<a href="/link?PHPSESSID=abtest">
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
int(44)
}
}
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
it worked
it worked
==DONE==
+PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
Warning: putenv(): Safe Mode warning: Cannot override protected environment variable 'BAZ' in %s on line %d
==DONE==
+PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
?>
--EXPECTF--
bool(true)
+PHP Warning: Directive 'define_syslog_variables' is deprecated in PHP 5.3 and greater in Unknown on line 0
*** Testing define_syslog_variables() : variation ***
PASSED
===DONE===
+PHP Warning: Directive 'define_syslog_variables' is deprecated in PHP 5.3 and greater in Unknown on line 0
/* Check for deprecated directives */
{
static const char *directives[] = {
- "zend.ze1_compatibility_mode",
+ "define_syslog_variables",
+ "register_globals",
+ "register_long_arrays",
+ "safe_mode",
+ "magic_quotes_gpc",
+ "magic_quotes_runtime",
+ "magic_quotes_sybase",
NULL};
const char **p = directives;
long val;
while (*p) {
if (cfg_get_long((char*)*p, &val) == SUCCESS && val) {
- zend_error(E_WARNING, "Directive '%s' is no longer supported in PHP 5.3 and greater", *p);
+ zend_error(E_WARNING, "Directive '%s' is deprecated in PHP 5.3 and greater", *p);
}
++p;
}
+
+ /* This is not too nice, but since its the only one theres no need for extra stuff here */
+ if (cfg_get_long("zend.ze1_compatibility_mode", &val) == SUCCESS && val) {
+ zend_error(E_ERROR, "zend.ze1_compatibility_mode is no longer supported in PHP 5.3 and greater");
+ }
}
/* Register PHP core ini entries */
bool(true)
string(%d) "%s"
bool(true)
+PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
+PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
+
?>
--EXPECT--
abc\'\"\0123
+PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0