1--TEST-- 2Bug #79740: serialize() and unserialize() methods can not be called statically 3--FILE-- 4<?php 5class A { 6 public function serialize() { } 7 public function unserialize() { } 8} 9 10var_dump(is_callable(['A', 'serialize'])); 11var_dump(is_callable(['A', 'unserialize'])); 12A::serialize(); 13A::unserialize(); 14 15?> 16--EXPECTF-- 17bool(true) 18bool(true) 19 20Deprecated: Non-static method A::serialize() should not be called statically in %s on line %d 21 22Deprecated: Non-static method A::unserialize() should not be called statically in %s on line %d 23