mirror of
https://github.com/php/php-src.git
synced 2026-04-02 13:43:02 +02:00
Tweak some tests to be --preload compatible
Avoid unnecessary output before a deprecation warning.
This commit is contained in:
@@ -3,8 +3,6 @@ Bug #36424 - Serializable interface breaks object references
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
echo "-TEST\n";
|
||||
|
||||
class a implements Serializable {
|
||||
function serialize() {
|
||||
return serialize(get_object_vars($this));
|
||||
@@ -44,8 +42,6 @@ echo "Done\n";
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
-TEST
|
||||
|
||||
Deprecated: The Serializable interface is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
|
||||
|
||||
Deprecated: The Serializable interface is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
|
||||
|
||||
@@ -3,8 +3,6 @@ Bug #64146 (serialize incorrectly saving objects when they are cloned)
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
echo "Test\n";
|
||||
|
||||
class A
|
||||
{
|
||||
public $a = array();
|
||||
@@ -54,8 +52,6 @@ print $a->a[1]->b->c . "\n";
|
||||
?>
|
||||
Done
|
||||
--EXPECTF--
|
||||
Test
|
||||
|
||||
Deprecated: The Serializable interface is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
|
||||
1
|
||||
2
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
Bug #65481 (shutdown segfault due to serialize)
|
||||
--FILE--
|
||||
<?php
|
||||
echo "Test\n";
|
||||
|
||||
class A {
|
||||
public $e = array();
|
||||
@@ -36,7 +35,5 @@ $token = serialize($token);
|
||||
?>
|
||||
Done
|
||||
--EXPECTF--
|
||||
Test
|
||||
|
||||
Deprecated: The Serializable interface is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
|
||||
Done
|
||||
|
||||
Reference in New Issue
Block a user