1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 07:28:09 +02:00
Commit Graph

133943 Commits

Author SHA1 Message Date
Eric Mann d6c16874cd Merge branch 'PHP-8.3' 2023-11-07 12:14:18 -08:00
Eric Mann 27cd9d2844 Update news for PHP 8.3.0 GA 2023-11-07 12:13:42 -08:00
Jakub Zelenka 894180e10e Merge branch 'PHP-8.3' 2023-11-07 19:32:56 +00:00
Jakub Zelenka 2aae3f8a24 Fix NEWS for 8.3.0RC5 2023-11-07 19:32:08 +00:00
Saki Takamachi 61c251d7bc Add XLEAK for some msodbcsql tests (#12615) 2023-11-07 18:11:54 +01:00
Gina Peter Banyard be2401ab61 [skip ci] gen_stub: Fix final comment text generation 2023-11-07 16:37:35 +00:00
Dmitry Stogov b88d38787b Revert "Fix incorrect trace type inference in a false loop"
This reverts commit 7f06a9daa2.
2023-11-07 18:29:26 +03:00
Dmitry Stogov 7f06a9daa2 Fix incorrect trace type inference in a false loop
Fixes oss-fuzz #63846
2023-11-07 17:29:10 +03:00
Sergey Panteleev 420acedf04 Merge branch 'PHP-8.3'
* PHP-8.3:
  PHP-8.2 is now for PHP 8.2.14-dev
2023-11-07 17:14:29 +03:00
Sergey Panteleev 0c32f8dc48 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  PHP-8.2 is now for PHP 8.2.14-dev

# Conflicts:
#	Zend/zend.h
#	configure.ac
#	main/php_version.h
2023-11-07 17:13:46 +03:00
Sergey Panteleev 239a26fa90 PHP-8.2 is now for PHP 8.2.14-dev 2023-11-07 17:12:19 +03:00
Dmitry Stogov 8ef695795c Fixed GH-12623: Segmentation fault in ZEND_DO_UCALL_SPEC_RETVAL_USED_HANDLER 2023-11-07 16:15:22 +03:00
Ilija Tovilo c01fb83fee Merge branch 'PHP-8.3'
* PHP-8.3:
  Fix inference of COPY_TMP
2023-11-07 12:04:24 +01:00
Ilija Tovilo cb1e842929 Fix inference of COPY_TMP
Since GH-11592 COPY_TMP may receive and thus define references. Unfortunately,
the name COPY_TMP is no longer accurate.

Closes GH-12619
2023-11-07 12:02:45 +01:00
Dmitry Stogov 3a3d83625b Fixed IR construction
Fixes oss-fuzz #63857
2023-11-07 13:25:09 +03:00
Dmitry Stogov a30d809290 Fixed incorrect dead edge elimination during IR construction
Fixes oss-fuzz #63931
2023-11-07 11:41:23 +03:00
Dmitry Stogov fa59bbe662 Update IR
IR commit: ec588537889c84a4ec649a6f1aa9d7f1bfea7b4d
2023-11-07 11:40:11 +03:00
KentarouTakeda c15988aab3 ext/pgsql: Refactor tests (#12608)
This makes the tests independent of each other and allows them to be run in parallel.

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2023-11-06 22:36:52 +00:00
Niels Dossche 6537811527 Merge branch 'PHP-8.3'
* PHP-8.3:
  Fix unspecified behaviour in zend_alloc in heap->limit computation
2023-11-06 19:47:04 +01:00
Niels Dossche 85cb081661 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Fix unspecified behaviour in zend_alloc in heap->limit computation
2023-11-06 19:46:57 +01:00
Niels Dossche 7ac9578e41 Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1:
  Fix unspecified behaviour in zend_alloc in heap->limit computation
2023-11-06 19:44:33 +01:00
Niels Dossche 28110f8d0a Fix unspecified behaviour in zend_alloc in heap->limit computation
Right-shifting a negative number is unspecified (i.e.
implementation-defined) behaviour [1]. If we take a look at the
generated assembly [2], we see that the wrong value is computed.
Fix it by using Z_UL instead of Z_L.

While we're at it, just change every occurrence of this pattern to use
Z_UL instead of casting.

[1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf §6.5.7.5
[2] https://godbolt.org/z/4Y1qKKjsh

Closes GH-12613.
2023-11-06 19:43:55 +01:00
Niels Dossche 92e4e8bdf4 Fix #49278: SoapClient::__getLastResponseHeaders returns NULL if wsdl operation !has output
Instead of early exiting, process the headers if tracing is enabled, and
exit after that.

Closes GH-12609.
2023-11-06 19:04:15 +01:00
Peter Kokot ccdc21b39a Remove check for dnet_addr in dnet_stub library (#12611)
The dnet_stub library was once used on some obsolete systems and was
needed for transitive linking with Sybase and some PHP extensions. At
this point, no known and supported system uses the dnet_stub library
name, so it's safe to remove this check. This also came in pdo_dblib as
a copy/paste from other removed PHP extensions.

Partially was already removed in 1b969a74d0.
2023-11-06 12:46:04 +00:00
Peter Kokot d0056d63da [skip ci] Use GitHub issue tracker link for reporting bugs (#12612) 2023-11-06 12:45:12 +00:00
Dmitry Stogov 93ed314432 Fixed incorrect type stores 2023-11-06 15:20:26 +03:00
David Carlier 44f9c226aa following-up on GH-12551: removing inet_ntoa usage
Close GH-12554
2023-11-06 12:05:56 +00:00
Niels Dossche 4022e287b2 [ci skip] NEWS 2023-11-05 14:06:50 +01:00
Niels Dossche bb42b418d4 Cleanup arguments of _php_dom_insert_fragment() (#12610) 2023-11-04 17:09:01 +01:00
Peter Kokot 8f4dc71256 build: Fix check for sigsetjmp (#12606)
The usual check for presence of sigsetjmp will not be sufficient since
the sigsetjmp might be defined as a macro.
2023-11-04 15:13:01 +00:00
Peter Kokot 7d485aa628 ext/sockets: Clean header checks (#12607)
- Unused header checks removed:
  HAVE_NETINET_TCP_H and HAVE_SYS_UN_H are not used in the code.
- Duplicate linux/filter.h check removed:
  HAVE_LINUX_FILTER_H is already defined in ext/sockets.
2023-11-04 15:12:16 +00:00
Niels Dossche 1ad5f9da36 [ci skip] UPGRADING 2023-11-04 15:20:49 +01:00
Niels Dossche 9a973a3743 Optimize strcspn (#12594) 2023-11-04 13:54:30 +00:00
Saki Takamachi bbe1222956 Fix GH-12296: [odbc] [pdo_odbc] Optimized odbc connection string creating (#12306)
Declare and initialize on one line

changed to use php_memnistr

store strlen(db) in a variable

Added a semicolon to the end of dsn.

If there is a semicolon at the end of the original dsn, it will be duplicated, so it will be removed.

Add condition when authentication information is null
2023-11-04 13:46:17 +00:00
Jakub Zelenka f288d9c4b0 Merge branch 'PHP-8.3' 2023-11-03 17:18:40 +00:00
Jakub Zelenka 52b13f6ddb Merge branch 'PHP-8.2' into PHP-8.3 2023-11-03 17:17:52 +00:00
Jakub Zelenka 882cc4f804 Merge branch 'PHP-8.1' into PHP-8.2 2023-11-03 17:17:23 +00:00
Jakub Zelenka a8c6c6165b Fix GH-9921: Loading ext in FPM config does not register module handlers
Closes GH-12377
2023-11-03 16:53:09 +00:00
Jakub Zelenka a66c926b68 Merge branch 'PHP-8.3' 2023-11-03 14:08:39 +00:00
Jakub Zelenka e43438544e Merge branch 'PHP-8.2' into PHP-8.3 2023-11-03 14:07:36 +00:00
Jakub Zelenka e3d1beb0f1 Fix bug #76922: FastCGI terminates conn after FCGI_GET_VALUES
Closes GH-12387
2023-11-03 14:06:36 +00:00
Dmitry Stogov afffcaeb4d Fixed GH-12512: JIT Assertion `info & (1 << type)' failed 2023-11-03 14:12:00 +03:00
Dmitry Stogov 3844593bfb An attempt to fix GH-12512 2023-11-03 13:49:50 +03:00
Dmitry Stogov 9e15910889 Merge branch 'PHP-8.3'
* PHP-8.3:
  Remove spaces
2023-11-03 10:58:47 +03:00
Dmitry Stogov 86f71e51d4 Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Remove spaces
2023-11-03 10:58:32 +03:00
Dmitry Stogov 7e5fb564d6 Remove spaces 2023-11-03 10:58:20 +03:00
Dmitry Stogov 88a82cc6a1 Merge branch 'PHP-8.3'
* PHP-8.3:
  Backport fix for HASH/PACKED array inference through MAY_BE_ARRAY_EMPTY flag (#12591)
2023-11-03 10:57:31 +03:00
Dmitry Stogov 4ee72a8dda Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2:
  Backport fix for HASH/PACKED array inference through MAY_BE_ARRAY_EMPTY flag (#12591)
2023-11-03 10:55:33 +03:00
Dmitry Stogov 6bf4041398 Backport fix for HASH/PACKED array inference through MAY_BE_ARRAY_EMPTY flag (#12591)
* Fixed HASH/PACKED array inference through MAY_BE_ARRAY_EMPTY flag

This fixes GH-12527

* typo
2023-11-03 10:54:57 +03:00
Dmitry Stogov 77312d8ea1 Fixed assertion 2023-11-03 02:16:08 +03:00