adoy
Repos
20
Followers
223
Following
16

The PHP Interpreter

C
34370
7008

Just a small tool to help me (and you but without any guaranty) to create command alias and sub-aliases (multi word alias)

C
7
2

Lightweight, single file, FastCGI client for PHP

281
56

VIM Php Refactoring Toolbox

175
30

Nuglif Application Configuration Language (NACL) is a configuration data language intended to be both human and machine friendly.

10
1

MQseries client library

C
2
2

Events

Announce PHP 8.2.0RC3

Created at 2 days ago
push

Announce PHP 8.2.0RC3

Created at 2 days ago
Created at 2 days ago
push

Add ziparchive missing files (#286)

Created at 3 days ago
pull request closed
Add ziparchive missing files

Hi all, I added three files about Ziparchive who aren't translated actually.

Thank you for your review !

Created at 3 days ago

Fix pcre.jit on Apple Silicon

This backports https://github.com/zherczeg/sljit/pull/105. Relates to bug #80435, however, it doesn't solve the bus error on PHP 8.0, but PHP 8.1 builds fine now.

Closes GH-9279.

[ci skip] Merge branch 'PHP-8.1' into PHP-8.2

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

Store default object handlers alongside the class entry

Object handlers being separate from class entries is a legacy inherited from PHP 5. Today it has little benefit to keep them separate: in fact, accessing object handlers usually requires not-so-safe hacks. While it is possible to swap handlers in a custom installed create_object handler, this mostly is tedious, as well as it requires allocating the object handlers struct at runtime, possibly caching it etc..

This allows extensions, which intend to observe other classes to install their own class handlers. The life cycle of internal classes may now be simply observed by swapping the class handlers in post_startup stage. The life cycle of userland classes may be observed by iterating over the new classes in zend_compile_file and zend_compile_string and then swapping their handlers.

In general, this would also be a first step in directly tying the object handlers to classes. Especially given that I am not aware of any case where the object handlers would be different between various instances of a given class.

Signed-off-by: Bob Weinand bobwei9@hotmail.com

Fix compilation on MacOS

memrchr has an always available equivalent under the name of zend_memrchr.

Signed-off-by: Bob Weinand bobwei9@hotmail.com

Port all internally used classes to use default_object_handlers

Signed-off-by: Bob Weinand bobwei9@hotmail.com

Unify structure for ext/random's randomizer tests (#9410)

  • Unify structure for ext/random's engine tests (2)

This makes adjustments that were missed in 2d6a883b3a1e5ee4f225dce64584ad2522e8e391.

  • Add engines.inc for ext/random tests

  • Unify structure for ext/random's randomizer tests

Fix class name FQN when AST dumping new and class const

Fixes GH-9447 Closes GH-9462

Merge branch 'PHP-8.1' into PHP-8.2

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

Declare ext/standard constants in stubs - part 4

Closes GH-9465

Fix GH-8932: Provide a way to get the called-scope of closures (#9299)

Co-authored-by: Christoph M. Becker cmbecker69@gmx.de

Add tests

[ci skip] NEWS

Merge branch 'PHP-8.0' into PHP-8.1

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

[ci skip] NEWS

Merge branch 'PHP-8.1' into PHP-8.2

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

[ci skip] NEWS

Declare ext/standard constants in stubs - part 5

Closes GH-9466

Fix memory leak triggered by unsuccessful dynamic property unserialization

Closes GH-9468

Declare ext/standard constants in stubs - part 6

Closes GH-9467

Add parenthesis around preprocessor conditions in stubs

gen_stub.php concatenates nested #ifs into one #if so let's make sure the semantics remain the same.

Created at 4 days ago
create tag
adoy create tag php-8.2.0RC3
Created at 4 days ago

[ci skip] Update NEWS for PHP 8.2.0RC4

Merge branch 'PHP-8.2'

  • PHP-8.2: [ci skip] Update NEWS for PHP 8.2.0RC4
Created at 4 days ago

[ci skip] Update NEWS for PHP 8.2.0RC4

Created at 4 days 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 5 days ago
pull request opened
Autoload source/CAS.php file

The source/CAS.php is not autoloaded. We used to require 'CAS.php'; but we get this :

Including CAS.php is deprecated. Install phpCAS using composer instead.

Created at 1 week ago
create branch
adoy create branch autoload-cas
Created at 1 week ago
Created at 1 week ago
push

Corrected spelling mistake in french (#282)

"à" -> "a" "interpréter" -> "interprétée"

Created at 1 week ago
pull request closed
Corrected spelling mistake in french

"à" -> "a" "interpréter" -> "interprétée"

Created at 1 week ago
push

urlapi: make curl_url_set(url, CURLUPART_URL, NULL, 0) clear all parts

As per the documentation :

Setting a part to a NULL pointer will effectively remove that part's contents from the CURLU handle.

But currently clearing CURLUPART_URL does nothing and returns CURLUE_OK. This change will clear all parts of the URL at once.

Closes #9028

projects: fix third-party SSL library build paths for Visual Studio

The paths used by the build batch files were inconsistent with those in the Visual Studio project files.

Closes #8991

transfer: upload performance; avoid tiny send

Append to the upload buffer when only small amount remains in buffer rather than performing a separate tiny send to empty buffer.

Avoid degenerative upload behavior which might cause curl to send mostly 1-byte DATA frames after exhausing the h2 send window size

Related discussion: https://github.com/nghttp2/nghttp2/issues/1722

Signed-off-by: Glenn Strauss gstrauss@gluelogic.com Closes #8965

easy: remove dead code

Follow-up from 5912da253b64d

Detected by Coverity (CID 1506519)

Closes #9029

runtests: add "threadsafe" to detected features

Follow-up to recent commits which added thread-safety support.

Bug: https://github.com/curl/curl/pull/9012#discussion_r902018782 Reported-by: Marc Hörsken

Closes https://github.com/curl/curl/pull/9030

CURLOPT_ALTSVC.3: document the file format

Closes #9033

CONTRIBUTE: mention how we maintain REUSE compliance

for copyright and license information of all files stored in git

Closes #9032

Makefile.m32: stop forcing XP target with ipv6 enabled [ci skip]

Since this [1] commit in 2011, _WIN32_WINNT was set fixed to Windows XP when the -ipv6 option is selected. Maybe this was added to support pre-XP Windows versions (?). These days libcurl builds fine for both XP and post-XP versions with IPv6 support enabled. The relevance of pre-XP version is also low by now. Other build methods also do not impose such limitation for a similar configuration. So, drop this hard-wired _WIN32_WINNT limit from Makefile.m32, thus building for the default Windows version set by the compiler. This is Vista for recent MinGW versions.

Old behaviour can be restored by setting this envvar: export CURL_CFLAG_EXTRAS=-D_WIN32_WINNT=0x0501

[1] 98a61d8e2e8982786aaf3916cbbcac96838316e7

Closes #9035

INTERNALS: bring back the "Library symbols" section

Most contents was moved, but this text should remain here.

Follow-up to: d324ac8 Reported-by: Viktor Szakats Bug: https://github.com/curl/curl/pull/9027#discussion_r903382326 Closes #9037

ci: avoid cmake -Hpath

This is an undocumented option similar to the -Spath' option introduced in cmake 3.13. Replace all instances of -Hpath' with -Spath' in macos workflow. Replace -H. -Bpath' with `mkdir path; cd ./path; cmake ..' in zuul scripts since it runs an older version of cmake.

Fixes #9008 Closes #9014

rand: stop detecting /dev/urandom in cross-builds

  • Prevent CMake to auto-detect /dev/urandom when cross-building. Before this patch, it would detect it in a cross-build scenario on *nix hosts with this device present. This was a problem for example with Windows builds, but it could affect any target system with this device missing. This also syncs detection behaviour with autotools, which also skips it for cross-builds.
  • Also, make sure to never use the file RANDOM_FILE as entropy for libcurl's fallback random number generator on Windows. Windows does not have the concept of reading a random stream from a filename, nor any guaranteed non-world-writable path on disk. With this, a manual misconfiguration or an overeager auto-detection can no longer result in a user-controllable seed source.

Reviewed-by: Daniel Stenberg Closes #9038

curl_setup: include _mingw.h

Prior to this change _mingw.h needed to be included in each unit before evaluating __MINGW{32,64}_xxx_VERSION macros since it defines them. It is included only in some mingw headers (eg stdio.h) and not others (eg windows.h) so it's better to explicitly include it once.

Closes https://github.com/curl/curl/pull/9036

THANKS: add contributor missing from aea8ac1

aea8ac1 fixed #8980 which was reported by Sgharat on github, but that info was not included in the commit message.

ftp: restore protocol state after http proxy CONNECT

connect_init() (lib/http_proxy.c) swaps out the protocol state while working on the proxy connection, this is then restored by Curl_connect_done() after the connection completes.

ftp_do_more() extracted the protocol state pointer to a local variable at the start of the function then calls Curl_proxy_connect(). If the proxy connection completes, Curl_proxy_connect() will call Curl_connect_done() (via Curl_proxyCONNECT()), which restores data->req.p to point to the ftp protocol state instead of the http proxy protocol state, but the local variable in ftp_do_more still pointed to the old value.

Ultimately this meant that the state worked on by ftp_do_more() was the http proxy state not the ftp state initialised by ftp_connect(), but subsequent calls to any ftp_ function would use the original state.

For my use-case, the visible consequence was that ftp->downloadsize was never set and so downloaded data was never returned to the application.

This commit updates the ftp protocol state pointer in ftp_do_more() after Curl_proxy_connect() returns, ensuring that the correct state pointer is used.

Fixes #8737 Closes #9043

ngtcp2: avoid supplying 0 length msg_control to sendmsg()

Testing on macOS 12.4, sendmsg() fails with EINVAL when a msg_control buffer is provided in sengmsg(), even though msg_controllen was set to 0.

Initialize msg.msg_controllen just as needed and also perform the size assertion only when needed.

Closes #9039

easy_lock.h: remove use of the deprecated ATOMIC_VAR_INIT macro

clang 14 warns about its use. It is being deprecated by the working group for the programming language C: "The macro ATOMIC_VAR_INIT is basically useless for the purpose for which it was designed"

Ref: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2886.htm

Reported-by: Tatsuhiro Tsujikawa Fixes #9041 Closes #9042

krb5: return error properly on decode errors

Bug: https://curl.se/docs/CVE-2022-32208.html CVE-2022-32208 Reported-by: Harry Sintonen Closes #9051

content_encoding: return error on too many compression steps

The max allowed steps is arbitrarily set to 5.

Bug: https://curl.se/docs/CVE-2022-32206.html CVE-2022-32206 Reported-by: Harry Sintonen Closes #9049

test387: verify rejection of compression chain attack

cookie: apply limits

  • Send no more than 150 cookies per request
  • Cap the max length used for a cookie: header to 8K
  • Cap the max number of received Set-Cookie: headers to 50

Bug: https://curl.se/docs/CVE-2022-32205.html CVE-2022-32205 Reported-by: Harry Sintonen Closes #9048

Created at 2 weeks ago
delete branch
adoy delete branch sync
Created at 3 weeks ago
push

Sync various sections (#279)

  • Sync various sections

  • Fix markup

  • Update reference/misc/functions/sleep.xml

Co-authored-by: George Peter Banyard girgias@php.net

  • Describe PHP8 as default behavior

Co-authored-by: George Peter Banyard girgias@php.net

Created at 3 weeks ago
pull request closed
Sync various sections
Created at 3 weeks ago

Describe PHP8 as default behavior

Created at 3 weeks ago
push

Describe PHP8 behavior as default in array doc

Created at 3 weeks ago

Update reference/misc/functions/sleep.xml

Co-authored-by: George Peter Banyard girgias@php.net

Created at 3 weeks ago
pull request opened
Sync various sections
Created at 3 weeks ago
create branch
adoy create branch sync
Created at 3 weeks ago