I am using wddx_serialize_value
function in my application, now I upgraded to PHP 7.4, But this function is removed from PHP 7.4, So what is the alternative for this function. I don't want to install this extension and all.
Asked
Active
Viewed 194 times
0

Bipin
- 334
- 6
- 21
-
1What do the release notes say? Why was it removed? Probably there's a reason and a an alternative to it. – Ulrich Eckhardt Oct 01 '21 at 12:19
-
I'm not familiar enough with it to give an answer, but a Google search suggests that switching to JSON would probably be the best option in the long run if that's possible. – Pikamander2 Oct 01 '21 at 12:20
-
[rfc](https://wiki.php.net/rfc/deprecate-and-remove-ext-wddx) _...code using the wddx extension would issue deprecation warnings, and/or would have to use the wddx extension from PECL (or somewhere else), or be rewritten._ – berend Oct 01 '21 at 12:22
-
1As already hinted, it was [removed from core](https://www.php.net/manual/en/migration74.removed-extensions.php) and [moved](https://www.php.net/manual/en/wddx.installation.php) to [PECL](https://pecl.php.net/package/wddx). – nitrin0 Oct 01 '21 at 12:26
1 Answers
0
wddx is deprecated because it is insecure.
The proper solution is to switch to json.

Mr. Beeblebrox
- 186
- 1
- 5