diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-01-27 14:16:56 +0000 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-01-27 14:46:28 +0000 |
commit | 3923de987efa79645b3e30a55adca4375e0843e2 (patch) | |
tree | 64bb2c68e4c87b518319125536fa0c4c9ed1b497 /test/test_status.py | |
parent | 0686740f2053abf2b398c6620bb2e74090209fc6 (diff) | |
download | unit-3923de987efa79645b3e30a55adca4375e0843e2.tar.gz unit-3923de987efa79645b3e30a55adca4375e0843e2.tar.bz2 |
PHP: Make use of zend_stream_init_filename().
Where possible make use of the zend_stream_init_filename() function
introduced in PHP 7.4.
This is essentially a preparatory patch for switching to using an
already opened file-pointer in nxt_php_execute(). While wrapping this
new code in a PHP version check with a fallback to our own function is
perhaps slightly overkill, it does reduce the diff of the commit that
switches to a FILE *.
Reviewed-by: Alejandro Colomar <alx@nginx.com>
Cc: Andrei Zeliankou <zelenkov@nginx.com>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'test/test_status.py')
0 files changed, 0 insertions, 0 deletions