History log of /php-src/ext/pcntl/tests/pcntl_exec_strings_with_nul_bytes.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# b53b5298 17-Dec-2024 Gina Peter Banyard

ext/pcntl: Refactor `pcntl_exec()` (#17172)

* Refactor usage of strlcpy

As we allocate the buffer, we know the string will fit inside the buffer.

* Throw ValueErrors when s

ext/pcntl: Refactor `pcntl_exec()` (#17172)

* Refactor usage of strlcpy

As we allocate the buffer, we know the string will fit inside the buffer.

* Throw ValueErrors when strings contain null bytes

The underlying C calls work with C strings, which are NULL terminated.

* exec_pcntl() always return false

Thus, update stubs to formally have a return type of `false`.

show more ...