[php-src] PR #13206: Refactor file_put_contents() type handling
| From: | Girgias | Date: | Sat, 20 Jan 2024 21:18:25 +0000 |
| Subject: | [php-src] PR #13206: Refactor file_put_contents() type handling | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24842@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13206
Author: Girgias
This attempts to align the behaviour of `
$data as if we had a ZPP check for it,
as such passing null` is deprecated and non stringable objects throw an Error.
Another addition is to check that all entries of an array are actually strings and pre-concatenating
them to save on IO calls (and actually do what the docs say passing an array does).