History log of /PHP-8.2/sapi/cli/php_cli.c (Results 1 – 25 of 414)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 706bcdbc 18-Sep-2024 Ilija Tovilo

Fix printing backtrace of fake generator frame

Fixes GH-15851
Closes GH-15952


# b9bf9ee2 23-Jun-2023 nielsdos <7771979+nielsdos@users.noreply.github.com>

Merge branch 'PHP-8.1' into PHP-8.2

* PHP-8.1:
Fix interrupted CLI output causing the process to exit


# 1111a951 22-Jun-2023 nielsdos <7771979+nielsdos@users.noreply.github.com>

Fix interrupted CLI output causing the process to exit

When writing the output in the CLI is interrupted by a signal, the
writing will fail in sapi_cli_single_write(), causing an exit la

Fix interrupted CLI output causing the process to exit

When writing the output in the CLI is interrupted by a signal, the
writing will fail in sapi_cli_single_write(), causing an exit later in
sapi_cli_ub_write(). This was the other part of the issue in GH-11498.
The solution is to restart the write if an EINTR has been observed.

Closes GH-11510.

show more ...

# 0a4a55fd 20-Jun-2022 Jakub Zelenka

Allow to not close stream on rscr dtor in php cli sapi

# 61ad0d91 09-Jul-2022 Arnaud Le Blanc

Fix build

# da1cbd20 09-Jul-2022 Arnaud Le Blanc

Merge branch 'PHP-8.1'

* PHP-8.1:
[ci skip] NEWS
Fix GH-8952: std streams can not be deliberately closed (#8953)
intl extension, build fix for icu >= 69.x release. ubrk/ucn

Merge branch 'PHP-8.1'

* PHP-8.1:
[ci skip] NEWS
Fix GH-8952: std streams can not be deliberately closed (#8953)
intl extension, build fix for icu >= 69.x release. ubrk/ucnv_safeClone had been deprecated in favor of ubrk/ucnv_clone which does not use user provided stacks but remain thread safe.

show more ...


# 2dbde18b 09-Jul-2022 Arnaud Le Blanc

Fix GH-8952: std streams can not be deliberately closed (#8953)

# b8dee9b3 20-Jun-2022 Christoph M. Becker

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
Fix GH-8827: Intentionally closing std handles no longer possible


# a8437d08 20-Jun-2022 Christoph M. Becker

Fix GH-8827: Intentionally closing std handles no longer possible

We revert the commits which caused this regression from the PHP-8.0 and
PHP-8.1 branches for now. We keep it in "master

Fix GH-8827: Intentionally closing std handles no longer possible

We revert the commits which caused this regression from the PHP-8.0 and
PHP-8.1 branches for now. We keep it in "master" because of PR #8833
which may offer a proper fix without BC break.

show more ...

# 5ba6ecd5 24-May-2022 George Peter Banyard

Minor refactoring of main/main.c and TSRM (#8608)

# c53c3e20 16-May-2022 Levi Morrison

Stop closing stderr and stdout streams (#8571)

Extensions may (and do) write to stderr in mshutdown and similar. In
the best case, with the stderr stream closed, it's just swallowed.

Stop closing stderr and stdout streams (#8571)

Extensions may (and do) write to stderr in mshutdown and similar. In
the best case, with the stderr stream closed, it's just swallowed.

However, some libraries will do things like try to detect color, and
these will outright fail and cause an error path to be taken.

show more ...

# 980385d1 20-May-2022 Arnaud Le Blanc

Merge branch 'PHP-8.1'

* PHP-8.1:
Stop closing stderr and stdout streams (#8570)
Revert "XFAIL tests (GH-8588)"
XFAIL tests (GH-8588)
Stop closing stderr and stdout s

Merge branch 'PHP-8.1'

* PHP-8.1:
Stop closing stderr and stdout streams (#8570)
Revert "XFAIL tests (GH-8588)"
XFAIL tests (GH-8588)
Stop closing stderr and stdout streams (#8569)

show more ...


# ffd27bde 16-May-2022 Levi Morrison

Stop closing stderr and stdout streams (#8570)

Extensions may (and do) write to stderr in mshutdown and similar. In
the best case, with the stderr stream closed, it's just swallowed.

Stop closing stderr and stdout streams (#8570)

Extensions may (and do) write to stderr in mshutdown and similar. In
the best case, with the stderr stream closed, it's just swallowed.

However, some libraries will do things like try to detect color, and
these will outright fail and cause an error path to be taken.

show more ...

# 6465f3ed 20-May-2022 Arnaud Le Blanc

Merge branch 'PHP-8.0' into PHP-8.1

* PHP-8.0:
XFAIL tests (GH-8588)
Stop closing stderr and stdout streams (#8569)


# fa78e177 16-May-2022 Levi Morrison

Stop closing stderr and stdout streams (#8569)

Extensions may (and do) write to stderr in mshutdown and similar. In
the best case, with the stderr stream closed, it's just swallowed.

Stop closing stderr and stdout streams (#8569)

Extensions may (and do) write to stderr in mshutdown and similar. In
the best case, with the stderr stream closed, it's just swallowed.

However, some libraries will do things like try to detect color, and
these will outright fail and cause an error path to be taken.

show more ...

# 9601475e 09-May-2022 George Peter Banyard

Minimal refactoring of CLI SAPI (#8519)

More specific types, some cleanup and voidifying functions which always return ``SUCCESS``

# b5db594f 27-Apr-2022 George Peter Banyard

Refacto php_module_startup() (#8303)

It only ever uses at most 1 additional modules

# d87ba95a 22-Mar-2022 Max Kellermann

sapi/*: move duplicate "--define" code to library

# 90b7bde6 03-Nov-2021 Dmitry Stogov

Use more compact representation for packed arrays.

- for packed arrays we store just an array of zvals without keys.
- the elements of packed array are accessible throuf as ht->arPacked[

Use more compact representation for packed arrays.

- for packed arrays we store just an array of zvals without keys.
- the elements of packed array are accessible throuf as ht->arPacked[i]
instead of ht->arData[i]
- in addition to general ZEND_HASH_FOREACH_* macros, we introduced similar
familied for packed (ZEND_HASH_PACKED_FORECH_*) and real hashes
(ZEND_HASH_MAP_FOREACH_*)
- introduced an additional family of macros to access elements of array
(packed or real hashes) ZEND_ARRAY_ELEMET_SIZE, ZEND_ARRAY_ELEMET_EX,
ZEND_ARRAY_ELEMET, ZEND_ARRAY_NEXT_ELEMENT, ZEND_ARRAY_PREV_ELEMENT
- zend_hash_minmax() prototype was changed to compare only values

Because of smaller data set, this patch may show performance improvement
on some apps and benchmarks that use packed arrays. (~1% on PHP-Parser)

TODO:
- sapi/phpdbg needs special support for packed arrays (WATCH_ON_BUCKET).
- zend_hash_sort_ex() may require converting packed arrays to hash.

show more ...

# be5fd30d 15-Jul-2021 Christoph M. Becker

Fix Windows debug builds

`ZEND_ATOL` doesn't accept a size argument.

# 497858a0 12-Jul-2021 Christoph M. Becker

Merge branch 'PHP-8.0'

* PHP-8.0:
exit_status is no longer a true global


# 1631b96b 12-Jul-2021 Christoph M. Becker

exit_status is no longer a true global

# 057d2f2a 12-Jul-2021 Christoph M. Becker

Merge branch 'PHP-8.0'

* PHP-8.0:
Fix #73226: --r[fcez] always return zero exit code


# 0c0ecf04 12-Jul-2021 Christoph M. Becker

Merge branch 'PHP-7.4' into PHP-8.0

* PHP-7.4:
Fix #73226: --r[fcez] always return zero exit code


# 9db3eda2 07-Jul-2021 Christoph M. Becker

Fix #73226: --r[fcez] always return zero exit code

This makes the behavior consistent with `--ri`, and is likely useful
for scripting.

Closes GH-7221.

12345678910>>...17