[php-src] PR #21201: ext/standard Deprecate passing empty string to realpath()
| From: | arshidkv12 | Date: | Wed, 11 Feb 2026 16:12:31 +0000 |
| Subject: | [php-src] PR #21201: ext/standard Deprecate passing empty string to realpath() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34906@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21201
Author: arshidkv12
Deprecate passing an empty string to the
realpath() php function.
Passing an empty string to realpath() currently resolves to the current working
directory. This behavior is implicit and not
self-explanatory.
Deprecate this usage and emit E_DEPRECATED, recommending getcwd() instead for
retrieving the current working directory.