Skip to content

[Sync-EN] Fix the assert(), dl() and getrusage() return docs and the E_ALL value - #1801

Open
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1688
Open

[Sync-EN] Fix the assert(), dl() and getrusage() return docs and the E_ALL value#1801
lacatoire wants to merge 1 commit into
php:masterfrom
lacatoire:sync-en/1688

Conversation

@lacatoire

Copy link
Copy Markdown
Member

Syncs four reference/info/ pages with php/doc-en#5650.

  • assert(): the return-value list said the function always returns true when assert.exception=1, assert.bail=1, or a custom exception object is passed. Those three entries are removed: only zend.assertions=0, zend.assertions=-1 and assert.active=0 make it unconditionally return true. AssertionError and the three Throwable mentions are marked up as exceptionname.
  • dl(): when module loading is unavailable or enable_dl is off, the function emits an E_WARNING and returns false; it does not emit E_ERROR and stop execution.
  • get_defined_constants(): the two example outputs showed [E_ALL] => 2047, the pre-8.0 value; it is 30719.
  • getrusage(): with mode set to 1 (RUSAGE_CHILDREN) the function collects resource usage for child processes, not for threads via RUSAGE_THREAD.

reference/info/versions.xml is not part of this change: that file is EN-only infrastructure and has no Russian counterpart.

Several paragraphs become simpara, as upstream.

EN-Revision bumped to 5367d2fcdf4b710a81806aba52a71c522f082713 on the four files.

Fixes: #1688

@lacatoire
lacatoire requested a review from a team as a code owner August 31, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Sync EN] info: fix assert/dl/getrusage return-value docs, E_ALL value, and versions.xml duplicates

1 participant