Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,52 @@ env:
CC: ccache gcc
CXX: ccache g++
jobs:
ALPINE:
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
name: ALPINE_X64_ASAN_UBSAN_DEBUG_ZTS
runs-on: ubuntu-22.04
container:
image: 'alpine:3.20.1'
steps:
- name: git checkout
uses: actions/checkout@v5
- name: apk
uses: ./.github/actions/apk
- name: LLVM 17 (ASAN-only)
# libclang_rt.asan-x86_64.a is provided by compiler-rt, and only for clang17:
# https://pkgs.alpinelinux.org/contents?file=libclang_rt.asan-x86_64.a&path=&name=&branch=v3.20
run: |
apk add clang17 compiler-rt
- name: System info
run: |
echo "::group::Show host CPU info"
lscpu
echo "::endgroup::"
echo "::group::Show installed package versions"
apk list
echo "::endgroup::"
- name: ./configure
uses: ./.github/actions/configure-alpine
with:
configurationParameters: >-
CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC"
LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function"
CC=clang-17
CXX=clang++-17
--enable-debug
--enable-zts
skipSlow: true # FIXME: This should likely include slow extensions
- name: make
run: make -j$(/usr/bin/nproc) >/dev/null
- name: make install
uses: ./.github/actions/install-alpine
- name: Test Tracing JIT
uses: ./.github/actions/test-alpine
with:
jitType: tracing
runTestsParameters: >-
--asan -x
-d opcache.enable_cli=1
LINUX_X64:
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
services:
Expand Down
2 changes: 0 additions & 2 deletions Zend/tests/enum/__sleep.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ enum Foo {

?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Fatal error: Enum Foo cannot include magic method __sleep in %s on line %d
2 changes: 0 additions & 2 deletions Zend/tests/enum/__wakeup.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@ enum Foo {

?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Fatal error: Enum Foo cannot include magic method __wakeup in %s on line %d
1 change: 0 additions & 1 deletion Zend/tests/lazy_objects/oss_fuzz_71446.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@ $obj = $reflector->newLazyProxy(function() {
serialize($obj);
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
1 change: 0 additions & 1 deletion Zend/tests/lazy_objects/serialize___sleep.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ try {

?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
Init on serialize and successful initialization
string(27) "O:1:"C":1:{s:4:"%0C%0b";i:1;}"
Init on serialize and failed initialization
Expand Down
1 change: 0 additions & 1 deletion Zend/tests/lazy_objects/serialize___sleep_initializes.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ $obj = $reflector->newLazyProxy(function ($obj) {
test('Proxy', $obj);

--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
# Ghost:
string(11) "initializer"
string(24) "O:1:"C":1:{s:1:"a";i:1;}"
Expand Down
1 change: 0 additions & 1 deletion Zend/tests/lazy_objects/serialize___sleep_skip_flag.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ $obj = $reflector->newLazyProxy(function ($obj) {
test('Proxy', $obj);

--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
# Ghost:
string(12) "O:1:"C":0:{}"
object(C)#%d (0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ $obj = $reflector->newLazyProxy(function ($obj) {
test('Proxy', $obj);

--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
# Ghost:
string(11) "initializer"
int(1)
Expand Down
3 changes: 1 addition & 2 deletions Zend/tests/serialize/bug34045.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ $db_str = serialize($db);
$db2 = unserialize($db_str);
echo "ok\n";
?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
--EXPECT--
ok
9 changes: 0 additions & 9 deletions Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -9375,15 +9375,6 @@ static void zend_compile_class_decl(znode *result, zend_ast *ast, bool toplevel)
ce->ce_flags |= ZEND_ACC_TOP_LEVEL;
}

if (ce->__serialize == NULL && zend_hash_exists(&ce->function_table, ZSTR_KNOWN(ZEND_STR_SLEEP))) {
zend_error(E_DEPRECATED, "The __sleep() serialization magic method has been deprecated."
" Implement __serialize() instead (or in addition, if support for old PHP versions is necessary)");
}
if (ce->__unserialize == NULL && zend_hash_exists(&ce->function_table, ZSTR_KNOWN(ZEND_STR_WAKEUP))) {
zend_error(E_DEPRECATED, "The __wakeup() serialization magic method has been deprecated."
" Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary)");
}

/* We currently don't early-bind classes that implement interfaces or use traits */
if (!ce->num_interfaces && !ce->num_traits && !ce->num_hooked_prop_variance_checks
#ifdef ZEND_OPCACHE_SHM_REATTACHMENT
Expand Down
2 changes: 0 additions & 2 deletions ext/date/tests/bug62852_var2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ try {
var_dump( $foo );
?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Fatal error: Uncaught Error: Invalid serialization data for DateTime object in %sbug62852_var2.php:%d
Stack trace:
#0 [internal function]: DateTime->__unserialize(Array)
Expand Down
2 changes: 0 additions & 2 deletions ext/date/tests/bug62852_var3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ try {
var_dump( $foo );
?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Fatal error: Uncaught Error: Invalid serialization data for DateTime object in %sbug62852_var3.php:%d
Stack trace:
#0 [internal function]: DateTime->__unserialize(Array)
Expand Down
3 changes: 0 additions & 3 deletions ext/dom/tests/gh8996.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ echo "Serialized:\n-----------\n$serialized\n-----------\nRestored:\n-----------

?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
=== __sleep and __wakeup ===
string(144) "O:34:"SerializableDomDocumentSleepWakeup":1:{s:43:"%0SerializableDomDocumentSleepWakeup%0xmlData";s:39:"<?xml version="1.0"?>
<tag>value</tag>
Expand Down
4 changes: 0 additions & 4 deletions ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_class.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ $db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test_stmt_fetch_class');
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: %s implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
Creating an object, serializing it and writing it to DB...
myclass::singleton(Creating object)
Expand Down
4 changes: 0 additions & 4 deletions ext/pdo_mysql/tests/pdo_mysql_stmt_fetch_serialize.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,6 @@ $db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test_stmt_fetch_serialize');
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: %s implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
Creating an object, serializing it and writing it to DB...
myclass::singleton(Creating object)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ $db = MySQLPDOTest::factory();
$db->exec('DROP TABLE IF EXISTS test_stmt_fetchserialize_fetch_class');
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: %s implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
Creating an object, serializing it and writing it to DB...
myclass::singleton(Creating object)
Expand Down
1 change: 0 additions & 1 deletion ext/phar/tests/phar_metadata_write3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php.copy.php');
?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
Reading file contents through stream wrapper
string(18) "contents of file a"
Original metadata
Expand Down
3 changes: 0 additions & 3 deletions ext/phar/tests/phar_metadata_write4.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php.copy.php');
?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
In __destruct 1
string(1) "a"
Loading metadata for 'a' without allowed_classes
Expand Down
1 change: 0 additions & 1 deletion ext/spl/tests/SplObjectStorage/bug70365.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ function ptr2str($ptr)
}
?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
array(5) {
[0]=>
int(1)
Expand Down
1 change: 0 additions & 1 deletion ext/spl/tests/bug70366.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ function ptr2str($ptr)
}
?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
array(5) {
[0]=>
int(1)
Expand Down
3 changes: 0 additions & 3 deletions ext/standard/tests/serialize/001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ $a = unserialize($data);
var_dump($a);
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
N;
b:1;
b:0;
Expand Down
8 changes: 0 additions & 8 deletions ext/standard/tests/serialize/005.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,6 @@ echo "===AutoNA===\n";
var_dump(unserialize('O:22:"autoload_not_available":0:{}'));
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: %s implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
===O1===
TestOld::__sleep()
Expand Down
3 changes: 1 addition & 2 deletions ext/standard/tests/serialize/__serialize_004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ var_dump($s = serialize($obj));
var_dump(unserialize($s));

?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
--EXPECT--
string(126) "O:6:"Wakeup":1:{s:4:"data";a:1:{i:0;O:11:"Unserialize":1:{i:0;O:6:"Wakeup":1:{s:4:"data";a:1:{i:0;O:11:"Unserialize":0:{}}}}}}"
__unserialize() called
array(0) {
Expand Down
1 change: 0 additions & 1 deletion ext/standard/tests/serialize/bug14293.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ var_dump($t);

?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
__sleep called

Warning: serialize(): "b" returned as member variable from __sleep() but does not exist in %s on line %d
Expand Down
3 changes: 1 addition & 2 deletions ext/standard/tests/serialize/bug21957.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ echo $s . "\n";

var_dump(unserialize($s));
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
--EXPECT--
array(2) {
["one"]=>
string(3) "ABC"
Expand Down
4 changes: 0 additions & 4 deletions ext/standard/tests/serialize/bug35895.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,4 @@ serialize($obj);

?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Warning: serialize(): "parents" returned as member variable from __sleep() but does not exist in %s on line %d
3 changes: 1 addition & 2 deletions ext/standard/tests/serialize/bug64354_2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ try {
var_dump($e->getMessage());
}
?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
--EXPECT--
string(6) "Failed"
2 changes: 0 additions & 2 deletions ext/standard/tests/serialize/bug64354_3.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,5 @@ try {
}
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: %s implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
string(6) "Failed"
5 changes: 1 addition & 4 deletions ext/standard/tests/serialize/bug65806.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ function check(myObjC $obj) {
return 'successful';
}
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
--EXPECT--
SCRIPT START
check successful
start serialize/unserialize
Expand Down
3 changes: 1 addition & 2 deletions ext/standard/tests/serialize/bug68976.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ for($i = 0; $i < 5; $i++) {

var_dump($data);
?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
--EXPECT--
array(2) {
[0]=>
object(evilClass)#1 (0) {
Expand Down
5 changes: 1 addition & 4 deletions ext/standard/tests/serialize/bug69210.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ echo $si . "\n";
var_dump(unserialize($ss));
var_dump(unserialize($si));
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
--EXPECT--
O:10:"testString":1:{s:1:"a";b:1;}
O:11:"testInteger":1:{s:1:"a";b:1;}
object(testString)#3 (1) {
Expand Down
1 change: 0 additions & 1 deletion ext/standard/tests/serialize/bug69425.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ var_dump($data);

?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
int(1)
array(2) {
[0]=>
Expand Down
4 changes: 1 addition & 3 deletions ext/standard/tests/serialize/bug70172_2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ function ptr2str($ptr)
}
?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: obj implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
Deprecated: %s implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
array(2) {
[0]=>
object(obj2)#%d (1) {
Expand Down
3 changes: 1 addition & 2 deletions ext/standard/tests/serialize/bug70513.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ var_dump($x);
var_dump($obj);

?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
--EXPECT--
array(1) {
[0]=>
int(1)
Expand Down
2 changes: 0 additions & 2 deletions ext/standard/tests/serialize/bug71995.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ var_dump($s);
var_dump(unserialize($s));
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Warning: serialize(): "b" is returned from __sleep() multiple times in %s on line %d
string(39) "O:1:"A":1:{s:1:"b";O:8:"stdClass":0:{}}"
object(A)#%d (1) {
Expand Down
4 changes: 0 additions & 4 deletions ext/standard/tests/serialize/bug72663.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ try {

?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d

Warning: unserialize(): Error at offset 17 of 24 bytes in %s on line %d
bool(false)

Expand Down
1 change: 0 additions & 1 deletion ext/standard/tests/serialize/bug72731.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ var_dump(unserialize($poc));

?>
--EXPECTF--
Deprecated: The __wakeup() serialization magic method has been deprecated. Implement __unserialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
%s(73588229205)
3 changes: 1 addition & 2 deletions ext/standard/tests/serialize/bug73154.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ class a {
$s = 'a:1:{i:0;O:1:"a":1:{s:1:"a";R:2;}}';
var_dump(serialize(unserialize($s)));
?>
--EXPECTF--
Deprecated: The __sleep() serialization magic method has been deprecated. Implement __serialize() instead (or in addition, if support for old PHP versions is necessary) in %s on line %d
--EXPECT--
string(22) "a:1:{i:0;O:1:"a":0:{}}"
Loading