Commit 60bbe0b
Remove Serializable interface from GMP class
Trying to use `$gmp->serialize()` or `$gmp->unserialize()` as defined in the stubs will result in `Error: Call to undefined method GMP::serialize()`
PHP does not provide an object-oriented interface to manipulate GMP objects, only a procedural GMP API.
See: https://www.php.net/manual/en/class.gmp.php
> _"No object-oriented interface is provided to manipulate GMP objects. Please use the procedural GMP API."_
This can be confirmed in the PHP source code, the GMP class does not implement the `Serializable` interface, see: https://github.com/php/php-src/blob/master/ext/gmp/gmp.c#L584
If `Serializable` interface was implemented in the PHP source code, then we would have expected to see `register_class_GMP(zend_ce_serializable)`.1 parent d314372 commit 60bbe0b
1 file changed
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | | - | |
| 801 | + | |
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
810 | | - | |
811 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
812 | 816 | | |
813 | | - | |
814 | | - | |
815 | 817 | | |
816 | 818 | | |
817 | 819 | | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
822 | 824 | | |
823 | 825 | | |
824 | 826 | | |
825 | | - | |
826 | | - | |
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
0 commit comments