kocsismate
Repos
27
Followers
128
Following
39

The efficient and elegant JSON:API 1.1 server library for PHP

233
34

The efficient and elegant, PSR-7 compliant JSON:API 1.1 client library for PHP

158
12

A simple and flexible PHP middleware dispatcher based on PSR-7, PSR-11, and PSR-15

153
17

Woohoo Labs. Zen is a very fast and simple, PSR-11 compliant DI Container & preload file generator.

83
6

Benchmark for some popular PHP Dependency Injection Containers.

65
22

Official PHP benchmark suite

55
4

Events

[ci skip] Fix typo in configure.ac (build → built)

Closes GH-9495.

Add support for validation of missing method synopses (#9491)

Merge branch 'PHP-8.2'

  • PHP-8.2: Add support for validation of missing method synopses (#9491)

Fix GH-9493: fix ancillary data build for FreeBSD prior to the 13 release. (#9496)

the legacy sockcred struct does not hold the process id, thus sockcred2 had been added from FreeBSD 13 in conjunction with LOCAL_CREDS_PERSISTENT to address this thus we disable the feature for earlier releases.

Merge branch 'PHP-8.2'

Private method incorrectly marked as "overwrites" in reflection

Fix GH-9409 Closes GH-9469

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Private method incorrectly marked as "overwrites" in reflection

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Private method incorrectly marked as "overwrites" in reflection

Merge branch 'PHP-8.2'

  • PHP-8.2: Private method incorrectly marked as "overwrites" in reflection

Use PDEATHSIG to kill cli-server workers if parent exists

Closes GH-9476

Fix lsp error in eval'd code referring to incorrect class for static type

Fixes GH-9407 Closes GH-9471

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Fix lsp error in eval'd code referring to incorrect class for static type

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Fix lsp error in eval'd code referring to incorrect class for static type

Merge branch 'PHP-8.2'

  • PHP-8.2: Fix lsp error in eval'd code referring to incorrect class for static type

Improve magic __get and property type inconsistency error message

Fixes GH-9388 Closes GH-9436

[skip ci] Add missing NEWS entry for GH-9476

Declare ext/standard constants in stubs - part 7 (#9505)

Merge branch 'PHP-8.2'

  • PHP-8.2: Declare ext/standard constants in stubs - part 7 (#9505)

Fix undefined left shift in oci

The bit is shifted into the signed bit which is undefined. Make the integer explicitly unsigned before shifting.

Skip oci tests that leak under asan

Created at 1 day ago

Prepare for PHP 8.3

Merge branch 'PHP-8.2'

  • PHP-8.2: Prepare PHP 8.2.0 RC1

Harden GitHub Workflows security

Co-authored-by: Michael Voříšek mvorisek@mvorisek.cz

Closes GH-9440.

Add PHP-8.2 branch to build processes

Merge branch 'PHP-8.2'

  • PHP-8.2: Mark crypt()'s $string parameter as #[\SensitiveParameter] Prepare NEWS for PHP 8.2.0RC2

Merge branch 'PHP-8.2'

[ci skip] Merge branch 'PHP-8.2'

  • PHP-8.2: Fix pcre.jit on Apple Silicon

Merge remote-tracking branch 'origin/PHP-8.2'

Merge branch 'PHP-8.2'

  • PHP-8.2: Unify structure for ext/random's randomizer tests (#9410)

Merge branch 'PHP-8.2'

  • PHP-8.2: Fix class name FQN when AST dumping new and class const

Merge branch 'PHP-8.2'

  • PHP-8.2: Declare ext/standard constants in stubs - part 4

Merge branch 'PHP-8.2'

  • PHP-8.2: [ci skip] NEWS [ci skip] NEWS [ci skip] NEWS Add tests Fix GH-8932: Provide a way to get the called-scope of closures (#9299)

Merge branch 'PHP-8.2'

  • PHP-8.2: Declare ext/standard constants in stubs - part 5

Merge branch 'PHP-8.2'

  • PHP-8.2: Fix memory leak triggered by unsuccessful dynamic property unserialization Declare ext/standard constants in stubs - part 6 Add parenthesis around preprocessor conditions in stubs

Merge branch 'PHP-8.2'

  • PHP-8.2: Regenerate optimizer func info after preprocessor condition changes

Merge branch 'PHP-8.2'

  • PHP-8.2: [ci skip] NEWS Log the cause of error when opcache cannot write to file cache (#9258) Fix high opcache.interned_strings_buffer causing shm corruption (#9260)

Merge branch 'PHP-8.2'

Remove obsolete checks for random-related functionality from ext/standard/config.m4 (#9482)

The users of these checks have been moved to ext/random. ext/standard does not reference the resulting defines.

posix add sysconf call.

providing handful of common and most used constants.

Closes GH-9481.

[ci skip] NEWS UPGRADING

Created at 1 day ago

Prepare for PHP 8.3

Merge branch 'PHP-8.2'

  • PHP-8.2: Prepare PHP 8.2.0 RC1

Harden GitHub Workflows security

Co-authored-by: Michael Voříšek mvorisek@mvorisek.cz

Closes GH-9440.

Add PHP-8.2 branch to build processes

Merge branch 'PHP-8.2'

  • PHP-8.2: Mark crypt()'s $string parameter as #[\SensitiveParameter] Prepare NEWS for PHP 8.2.0RC2

Merge branch 'PHP-8.2'

[ci skip] Merge branch 'PHP-8.2'

  • PHP-8.2: Fix pcre.jit on Apple Silicon

Merge remote-tracking branch 'origin/PHP-8.2'

Merge branch 'PHP-8.2'

  • PHP-8.2: Unify structure for ext/random's randomizer tests (#9410)

Merge branch 'PHP-8.2'

  • PHP-8.2: Fix class name FQN when AST dumping new and class const

Merge branch 'PHP-8.2'

  • PHP-8.2: Declare ext/standard constants in stubs - part 4

Merge branch 'PHP-8.2'

  • PHP-8.2: [ci skip] NEWS [ci skip] NEWS [ci skip] NEWS Add tests Fix GH-8932: Provide a way to get the called-scope of closures (#9299)

Merge branch 'PHP-8.2'

  • PHP-8.2: Declare ext/standard constants in stubs - part 5

Merge branch 'PHP-8.2'

  • PHP-8.2: Fix memory leak triggered by unsuccessful dynamic property unserialization Declare ext/standard constants in stubs - part 6 Add parenthesis around preprocessor conditions in stubs

Merge branch 'PHP-8.2'

  • PHP-8.2: Regenerate optimizer func info after preprocessor condition changes

Merge branch 'PHP-8.2'

  • PHP-8.2: [ci skip] NEWS Log the cause of error when opcache cannot write to file cache (#9258) Fix high opcache.interned_strings_buffer causing shm corruption (#9260)

Merge branch 'PHP-8.2'

Remove obsolete checks for random-related functionality from ext/standard/config.m4 (#9482)

The users of these checks have been moved to ext/random. ext/standard does not reference the resulting defines.

posix add sysconf call.

providing handful of common and most used constants.

Closes GH-9481.

[ci skip] NEWS UPGRADING

Created at 1 day ago
issue comment
Declare main constants in stubs - part 1

Thank you! This looks good to me, but I'm not sure that we should make these changes for PHP-8.2, given that we're already in the RC phase. Is there any particular good reason to still do this for PHP-8.2?

OK, I admit that you are right, we don't have a very strong argument for including these changes for PHP 8.2, so I'll target master instead.

Created at 1 day ago
issue comment
Revert unintended test expectation change

Oh my bad.. When running the test locally (I use a Mac), I got this result, then I used bless_test.php and I didn't notice the change. :(

Created at 1 day ago

Declare main constants in stubs - part 1

Created at 3 days ago

Declare main constants in stubs - part 1

Created at 3 days ago
pull request opened
Declare main constants in stubs - part 1
Created at 3 days ago
create branch
kocsismate create branch const-main1
Created at 3 days 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 3 days ago
delete branch
kocsismate delete branch stub-class-string
Created at 3 days ago

Improve string class constant code generation (#9577)

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

Created at 3 days 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 3 days ago

declare random globals as public API

Remove superfluous helper variable in Randomizer::getBytes() (#9563)

  • Remove superfluous helper variable in Randomizer::getBytes()

  • Reduce the scope of result in Randomizer::getBytes()

Co-authored-by: Tim Düsterhus tim@bastelstu.be

Intern string values of internal classes to prevent their future interning during inheritance.

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Intern string values of internal classes to prevent their future interning during inheritance.

PS(mod_user_class_name) must not leak into next request

Fixes GH-9584

Indirect call reduction for Jit code

Changing indirect call to direct call for Jit code benefits the branch prediction, which gets 1% performance gain in our workload. Similarly, we change indirect jump to direct jump.

Signed-off-by: Su, Tao tao.su@intel.com Signed-off-by: Wang, Xue xue1.wang@intel.com

Merge branch 'PHP-8.1' into PHP-8.2

Fixed undefined macros warnings

Check "ssa_op" before dereference (it may be NULL for opcache.jit=51)

Use true return type for XML functions which always return true

And fix xml_parser_set_option() which didn't return false on failure.

Closes GH-9539

Revert "Fix parse_url(): can not recognize port without scheme"

This reverts commit 72d83709d9524945c93012f7bbb222e412df485a.

Closes GH-9569

Migrate community job to GitHub actions

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Migrate community job to GitHub actions

Move Opcache variation job to GitHub actions

Closes GH-9606

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Move Opcache variation job to GitHub actions

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Move Opcache variation job to GitHub actions

Migrate MSAN build to GitHub actions

Merge branch 'PHP-8.0' into PHP-8.1

  • PHP-8.0: Migrate MSAN build to GitHub actions

Merge branch 'PHP-8.1' into PHP-8.2

  • PHP-8.1: Migrate MSAN build to GitHub actions

Migrate --repeat 2 job to GitHub actions

Created at 3 days ago
delete branch
kocsismate delete branch stub-class-string2
Created at 3 days 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 3 days ago
pull request opened
Declare ext/standard constants in stubs - part 8
Created at 3 days ago
create branch
kocsismate create branch const-standard8
Created at 3 days 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 3 days ago
create branch
kocsismate create branch stub-class-string2
Created at 3 days ago
delete branch
kocsismate delete branch curl-redirect2
Created at 3 days ago
pull request closed
Also redirect function.curl-file-create.php to curlfile.construct

In order to fix https://github.com/php/doc-en/issues/1836

Created at 3 days ago
issue comment
Also redirect function.curl-file-create.php to curlfile.construct

OK? you are right!

Created at 3 days ago
issue comment
Add support for debug builds

This is awesome news! Thank you very much!

Created at 3 days ago
closed issue
Add support for debug builds

Describe the feature I'm a PHP extension maintainer and core contributor, so it would make my work much easier if setup-php would support using debug builds (./configure --enable-debug).

Underlying issue Debug builds have additional error checks and validations enabled, and these are essential for extension development.

Are you willing to submit a PR? I cannot submit a PR because I prefer working on PHP core in my free time.

Created at 3 days ago

Set locale to avoid issues with number formatting and parsing

Merge pull request #9 from arnaud-lb/locale

Set locale to avoid issues with number formatting and parsing

Created at 4 days ago
pull request closed
Set locale to avoid issues with number formatting and parsing

Depending on the locale, printf could format numbers in a way that will not work later in the program.

This fixes the following error on some machine:

bin/benchmark.sh: line 17: printf: 0.233922: invalid number

Line 17: https://github.com/kocsismate/php-version-benchmarks/blob/d8841911a05fbdd3f68b89fac77cbb384b98785e/bin/benchmark.sh#L17

Created at 4 days ago
Set locale to avoid issues with number formatting and parsing

Nice, thanks!

Created at 4 days ago