1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00

- Fixed tests

This commit is contained in:
Felipe Pena
2009-05-05 18:19:16 +00:00
parent 56e61fb2a5
commit d64db73483
18 changed files with 51 additions and 35 deletions
+1
View File
@@ -2,6 +2,7 @@
imap_mutf7_to_utf8
--SKIPIF--
<?php if (!extension_loaded("imap")) print "skip"; ?>
<?php if (!function_exists("imap_mutf7_to_utf8")) print "skip"; ?>
--FILE--
<?php
@@ -2,6 +2,7 @@
imap_utf8_to_mutf7
--SKIPIF--
<?php if (!extension_loaded("imap")) print "skip"; ?>
<?php if (!function_exists("imap_utf8_to_mutf7")) print "skip"; ?>
--FILE--
<?php
+3 -1
View File
@@ -31,8 +31,10 @@ print session_encode()."\n";
session_destroy();
--EXPECTF--
PHP Warning: 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
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
+2 -1
View File
@@ -28,6 +28,7 @@ var_dump($baz);
var_dump($arr);
session_destroy();
--EXPECT--
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
object(foo)#1 (2) {
["bar"]=>
string(2) "ok"
@@ -43,4 +44,4 @@ array(1) {
int(2)
}
}
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
+1 -1
View File
@@ -73,6 +73,7 @@ var_dump($arr);
session_destroy();
?>
--EXPECT--
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
OPEN: PHPSESSID
READ: abtest
object(foo)#2 (2) {
@@ -109,4 +110,3 @@ array(1) {
}
}
DESTROY: abtest
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
+2 -1
View File
@@ -85,6 +85,7 @@ var_dump($baz); var_dump($arr); var_dump($c);
session_destroy();
?>
--EXPECTF--
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
OPEN: PHPSESSID
READ: abtest
object(foo)#2 (2) {
@@ -146,4 +147,4 @@ array(1) {
int(123)
DESTROY: abtest
CLOSE
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
+2 -1
View File
@@ -45,6 +45,7 @@ echo "values after session:\n";
var_dump($a,$b);
?>
--EXPECTF--
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
original values:
object(a)#%d (1) {
["test"]=>
@@ -77,4 +78,4 @@ object(b)#%d (1) {
string(5) "hallo"
}
}
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
+3 -2
View File
@@ -50,6 +50,9 @@ var_dump($HTTP_SESSION_VARS);
session_destroy();
?>
--EXPECTF--
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
Deprecated: Function session_register() is deprecated in %s on line %d
float(3.14)
array(1) {
@@ -61,5 +64,3 @@ array(1) {
["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
+2 -1
View File
@@ -58,6 +58,7 @@ var_dump($HTTP_SESSION_VARS);
session_destroy();
?>
--EXPECTF--
PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
NULL
session_write_close(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively
array(1) {
@@ -69,4 +70,4 @@ array(1) {
["c"]=>
float(3.14)
}
PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
+15 -14
View File
@@ -43,18 +43,19 @@ var_dump($HTTP_SESSION_VARS);
session_destroy();
?>
--EXPECT--
array(0) {
}
array(1) {
["name"]=>
string(3) "foo"
}
array(1) {
["name"]=>
string(3) "foo"
}
array(0) {
}
array(0) {
}
PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0
array(0) {
}
array(1) {
["name"]=>
string(3) "foo"
}
array(1) {
["name"]=>
string(3) "foo"
}
array(0) {
}
array(0) {
}
+2 -1
View File
@@ -32,6 +32,7 @@ session_destroy();
print "I live\n";
?>
--EXPECTF--
PHP Warning: 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
I live
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
+1 -1
View File
@@ -24,5 +24,5 @@ session_destroy();
print "I live\n";
?>
--EXPECT--
I live
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
I live
+7 -7
View File
@@ -33,11 +33,11 @@ ini_set("session.use_trans_sid","1");
session_destroy();
?>
--EXPECTF--
<a href="/link?PHPSESSID=abtest">
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">
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
<a href="/link?PHPSESSID=abtest">
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">
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">
+3 -1
View File
@@ -47,6 +47,8 @@ var_dump($_SESSION);
session_destroy();
?>
--EXPECTF--
PHP Warning: 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
array(2) {
["o1"]=>
@@ -72,4 +74,4 @@ array(2) {
int(44)
}
}
PHP Warning: Directive 'register_globals' is deprecated in PHP 5.3 and greater in Unknown on line 0
@@ -16,10 +16,11 @@ print ($set ? 'it worked' : 'boo') . "\n";
?>
==DONE==
--EXPECTF--
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
Warning: putenv(): Safe Mode warning: Cannot set environment variable 'FOO' - it's not in the allowed list in %s on line %d
Warning: putenv(): Safe Mode warning: Cannot set environment variable 'BAZ' - it's not in the allowed list in %s on line %d
it worked
it worked
==DONE==
PHP Warning: Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
@@ -12,8 +12,9 @@ putenv('BAZ=bop');
?>
==DONE==
--EXPECTF--
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 'FOO' in %s on line %d
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
@@ -7,5 +7,5 @@ define_syslog_variables=On
var_dump(isset($LOG_ERR));
?>
--EXPECTF--
bool(true)
PHP Warning: Directive 'define_syslog_variables' is deprecated in PHP 5.3 and greater in Unknown on line 0
bool(true)
@@ -91,6 +91,7 @@ if ($failed == false) {
?>
===DONE===
--EXPECT--
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===