rfc:deprecate-and-remove-ext-wddx

This is an old revision of the document!


PHP RFC: Deprecate and Remove ext/wddx

Introduction

WDDX has been designed as programming language independent data exchange format for the web1). However, it never has been formally standardized, and it appears that it has been mostly superseeded by other data exchange formats such as JSON.

A particular problem is that PHP 4.0.0 added the ability to (de)serialize class instances2) including calls to _​_sleep() and __wakeup(), respectively. Therefore, wddx_deserialize() must not be called on untrusted user input to avoid remote code execution, basically defeating the purpose of WDDX. A former RFC proposed to “Deprecate class instance deserialization in WDDX”, but it has been withdrawn since that would break BC, and there seemed to be generally more consensus on deprecating the extension altogether.

Proposal

Therefore I suggest to either:

  • PHP 7.4: deprecate ext/wddx (particularly issue E_DEPRECATED whenever a wddx_*() function is called, or a WDDX session is written or read)
  • PHP 8.0: move ext/wddx to PECL/wddx (without removing the deprecation)

or to:

  • PHP 7.4: move ext/wddx to PECL/wddx without any deprecation

Backward Incompatible Changes

Obviously, code using the wddx extension would issue deprecation warnings, and/or would have to use the wddx extension from PECL, or be rewritten.

Open Issues

  • None

Proposed Voting Choices

Whether to remove ext/wddx (with or without deprecation), which requires a 2/3 majority.

A secondary vote will be held whether to deprecate or not, which requires a 50%+1 majority (and of course only has effect, if the primary vote passes).

Patches and Tests

None, yet.

Implementation

After the project is implemented, this section should contain

  1. the version(s) it was merged into
  2. a link to the git commit(s)
  3. a link to the PHP manual entry for the feature

References

Rejected Features

None.

rfc/deprecate-and-remove-ext-wddx.1547463388.txt.gz · Last modified: 2019/01/14 10:56 by cmb