summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2023-01-27 14:14:43 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-01-27 14:45:52 +0000
commit0686740f2053abf2b398c6620bb2e74090209fc6 (patch)
tree0c4de704e2d9277157e9f089503df2cec9885c08 /test
parent05c56394587ae9bda36ce7e481af12caf76b5252 (diff)
downloadunit-0686740f2053abf2b398c6620bb2e74090209fc6.tar.gz
unit-0686740f2053abf2b398c6620bb2e74090209fc6.tar.bz2
PHP: Factored out code into a helper function.
We're going to use zend_stream_init_filename in a following commit. To reduce the diff of that change, move the current code that will be replaced, to a function that has the same interface. We use strlen(3) here to be able to use an interface without passing the length, but we will remove that call in a following code, so it has no performance issues. Co-developed-by: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Cc: Andrei Zeliankou <zelenkov@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions