php
Repos
132

The PHP Interpreter

C
34350
6990

English PHP documentation

365
456

Events

started
Created at 19 minutes ago
pull request opened
[WIP] update appendices/migration82
Created at 2 hours ago
started
Created at 2 hours ago
push

Sync language-snippets

Add error_log_mode INI setting docs

Sync language section

Sync csprng section

Created at 4 hours ago
push

Translation/new-feature-81 (#207)

  • translate migration82 new-features

  • translate migration82 new-features format

  • Update new-features.xml

Co-authored-by: 魔王卷子 baoguoxiao0538@hotmail.com

Created at 4 hours ago
pull request closed
Translation/new-feature-81

translate migration82 new-features

Created at 4 hours ago

Switch to sanitize CFLAGS for community build

PHP-8.0 doesn't support those flags, we can switch once we drop that build.

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Switch to sanitize CFLAGS for community build

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Switch to sanitize CFLAGS for community build

Merge branch 'PHP-8.2'

  • PHP-8.2: Switch to sanitize CFLAGS for community build
Created at 6 hours ago

Switch to sanitize CFLAGS for community build

PHP-8.0 doesn't support those flags, we can switch once we drop that build.

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Switch to sanitize CFLAGS for community build

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Switch to sanitize CFLAGS for community build
Created at 6 hours ago

Switch to sanitize CFLAGS for community build

PHP-8.0 doesn't support those flags, we can switch once we drop that build.

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Switch to sanitize CFLAGS for community build
Created at 6 hours ago

Switch to sanitize CFLAGS for community build

PHP-8.0 doesn't support those flags, we can switch once we drop that build.

Created at 6 hours ago
issue comment
List skipped extensions in run-tests.php

Hmm, on a quick glance, I think we need to initialize $ignored_by_ext earlier. I'll have a closer look tomorrow.

Created at 6 hours ago
pull request opened
Declare main constants in stubs - part 1
Created at 6 hours ago
pull request closed
Throw in FFI::addr() when referencing temporary pointer

We're only disallowing pointers, as they always rely not only on the data but also the CData.ptr_holder to be there. Other unowned structures should be allowed, like structs, even if refcount == 1. Targeting master as this is an improvement rather than a bugfix.

Created at 6 hours ago

Throw in FFI::addr() when referencing temporary pointer

Closes GH-9601

Created at 6 hours ago
issue comment
List skipped extensions in run-tests.php

This causes the following error for me:

Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/ilutov/Developer/php-src/run-tests.php:3054
Stack trace:
#0 /home/ilutov/Developer/php-src/run-tests.php(726): compute_summary()
#1 /home/ilutov/Developer/php-src/run-tests.php(4019): main()
#2 {main}
  thrown in /home/ilutov/Developer/php-src/run-tests.php on line 3054
make: *** [Makefile:209: test] Error 255

where $ignored_by_ext is NULL.

Created at 6 hours ago

Improve string class constant code generation (#9577)

Using strlen() will make sure that non-constant values can also be used.

Merge branch 'PHP-8.2'

  • PHP-8.2: Improve string class constant code generation
Created at 6 hours ago

Improve string class constant code generation (#9577)

Using strlen() will make sure that non-constant values can also be used.

Created at 6 hours ago
pull request closed
Improve string class constant code generation

I don't see any problem with using strlen(), especially because zend_declare_class_const_string() has always been using this function until PHP 8.2. Unfortunately, it's not possible to call zend_declare_class_const_string() directly, since it only supports declaring public constants.

Created at 6 hours ago

Set SA_ONSTACK in zend_sigaction (#9597)

Created at 7 hours ago
pull request closed
Set SA_ONSTACK in zend_sigaction

I'm currently working on a new SAPI for web servers written in Go.

Many virtual machines, including Go VM, depend on signals using SA_ONSTACK . This flag allows a thread to define a new alternate signal stack. Many argue that SA_ONSTACK should be a default, but it's not the case (yet).

This patch sets the SA_ONSTACK flag when PHP calls sigaction().

Python merged a similar patch (https://github.com/python/cpython/pull/24730) in 2021 (Python 3.10+) for the same reasons, with no issues.

Created at 7 hours ago
started
Created at 7 hours ago
started
Created at 7 hours ago
pull request closed
Improve string class constant code generation

Using strlen() will make sure that non-constant values can also be used.

There was some issue with the tests on the original PR, so I tried to create a new one.

Created at 7 hours ago
pull request opened
Declare ext/standard constants in stubs - part 8
Created at 7 hours ago
issue comment
Set SA_ONSTACK in zend_sigaction

Unless there is a very strong need to have this change in 8.2 I would prefer to target 8.3 since we already are in an RC phase.

Created at 7 hours ago
pull request opened
Improve string class constant code generation

Using strlen() will make sure that non-constant values can also be used.

Created at 8 hours ago
push

Обновление до английской версии

Created at 8 hours ago