Christoph M. Becker
0aa1fdf28d
Fix variation5-win32(-mb).phpt wrt. parallel test execution
...
Each test should use its own temporary filenames to avoid issues when
the tests are executed in parallel[1]. We also silence the `unlink()`
calls in the CLEAN section just in case.
And while we're at it, we also remove the erroneous comment; there is
no symlinking involved for the Windows test variants.
[1] <https://github.com/php/php-src/pull/10175#issuecomment-1366809933 >
Closes GH-10189.
2022-12-30 17:47:58 +01:00
George Peter Banyard
11f6022365
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-10187: Segfault in stripslashes() with arm64
Fix memory leak in posix_ttyname()
2022-12-30 16:43:05 +00:00
George Peter Banyard
e6c9b176d4
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-10187: Segfault in stripslashes() with arm64
Fix memory leak in posix_ttyname()
2022-12-30 16:42:45 +00:00
Niels Dossche
4c9375e504
Fix GH-10187: Segfault in stripslashes() with arm64
...
Closes GH-10188
Co-authored-by: todeveni <toni.viemero@iki.fi >
Signed-off-by: George Peter Banyard <girgias@php.net >
2022-12-30 16:40:56 +00:00
George Peter Banyard
fa3bbf078a
Fix borked Windows tests after 3be2b0d0d8
2022-12-12 16:12:10 +00:00
George Peter Banyard
3be2b0d0d8
Add CLEAN section to some IO tests ( #10081 )
...
* Add CLEAN sections to file_(get|put)_contents() tests
* Add CLEAN sections to file() tests
2022-12-12 14:53:32 +00:00
David CARLIER
faef55d638
standard/basic_functions.c remove x bit on this file ( #10069 )
2022-12-09 08:38:52 +00:00
Niels
11b612af6d
Rename PHP_STREAM_TO_ZVAL to PHP_STREAM_FROM_ZVAL ( #10065 )
2022-12-07 19:57:50 +01:00
Jorg Adam Sowa
77ee92a50c
Remove unnecessary usage of CONST_CS
...
Closes GH-9685.
2022-11-28 17:12:07 +01:00
George Peter Banyard
bab9e349cb
Change conditional check in disk_free_space() test
...
As the notion of free space is fuzzy on some filesystems (such as BTRFS)
we check that the disk space after adding a file is less or equal than before
This closes Bug #80629
2022-11-16 12:58:24 +00:00
George Peter Banyard
dbf54e1a8b
Use zend_result return type instead of innacurate ones
2022-11-16 12:58:24 +00:00
George Peter Banyard
726d595ec7
Remove code for OS2
...
The last release of OS2 was in December 2021, so 20 years ago. Remove this effectively dead code
2022-11-16 12:58:24 +00:00
Tim Düsterhus
dd8de1e726
Promote unserialize() notices to warning ( #9629 )
...
* Unserialize: Migrate "Unexpected end of serialized data" to E_WARNING
* Unserialize: Migrate "Error at offset %d of %d bytes" to E_WARNING
* Unserialize: Migrate "%s is returned from __sleep() multiple times" to E_WARNING
* Add NEWS for “Promote unserialize() notices to warning”
2022-11-15 19:36:38 +01:00
Bob Weinand
81c33eebcb
Merge branch 'PHP-8.2'
2022-11-09 17:52:01 +01:00
Bob Weinand
0bfdd5691c
Fix crash reading module_entry after DL_UNLOAD() when module already loaded
...
This occurs when the handle is different from the current handle (e.g. copy of the .so file), hence the existing test did not catch that particular case.
2022-11-09 17:51:45 +01:00
Christoph M. Becker
75f372295e
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-9905: constant() behaves inconsistent when class is undefined
2022-11-09 15:23:51 +01:00
Christoph M. Becker
4b1feda574
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-9905: constant() behaves inconsistent when class is undefined
2022-11-09 15:23:21 +01:00
Christoph M. Becker
b2186ca7c4
Fix GH-9905: constant() behaves inconsistent when class is undefined
...
Directly referring to a constant of an undefined throws an exception;
there is not much point in `constant()` raising a fatal error in this
case.
Closes GH-9907.
2022-11-09 15:21:50 +01:00
Christoph M. Becker
aef9430e80
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Don't skip test on Windows due to missing ext/posix
2022-11-07 15:10:46 +01:00
Christoph M. Becker
3c102469de
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Don't skip test on Windows due to missing ext/posix
2022-11-07 15:07:53 +01:00
Christoph M. Becker
31cdda2440
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Don't skip test on Windows due to missing ext/posix
2022-11-07 15:07:09 +01:00
Christoph M. Becker
4c35d6440b
Don't skip test on Windows due to missing ext/posix
...
ext/posix is not available on Windows, but there is no need to check
for root (i.e. elevated privileges) on this platform, either.
Closes GH-9886.
2022-11-07 15:01:25 +01:00
Ilija Tovilo
f669a556c9
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Really fix test this time
2022-11-03 16:34:13 +01:00
Ilija Tovilo
f45c8bd34e
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Really fix test this time
2022-11-03 16:34:03 +01:00
Ilija Tovilo
35167af771
Really fix test this time
2022-11-03 16:33:07 +01:00
Ilija Tovilo
6d176ee87b
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix ext section
2022-11-03 15:20:31 +01:00
Ilija Tovilo
46d693b82f
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix ext section
2022-11-03 15:20:22 +01:00
Ilija Tovilo
bca1e1f557
Fix ext section
...
Ugh, sorry.
2022-11-03 15:19:44 +01:00
Ilija Tovilo
eeefdf2f77
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix duplicate SKIPIF section
2022-11-03 15:18:55 +01:00
Ilija Tovilo
4382c092c2
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix duplicate SKIPIF section
2022-11-03 15:18:44 +01:00
Ilija Tovilo
d2c663441d
Fix duplicate SKIPIF section
2022-11-03 15:18:13 +01:00
Ilija Tovilo
86af42be1b
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Migrate i386 to GitHub actions
2022-11-03 14:40:35 +01:00
Ilija Tovilo
b08901b63f
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Migrate i386 to GitHub actions
2022-11-03 14:37:59 +01:00
Ilija Tovilo
ed1e703716
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Migrate i386 to GitHub actions
2022-11-03 14:37:17 +01:00
Ilija Tovilo
75970077b0
Migrate i386 to GitHub actions
...
Closes GH-9856
2022-11-03 14:34:54 +01:00
Jakub Zelenka
1ea8c8217e
Make test for bug #51056 (blocking read) more reliable
...
It seems that it might sometimes not return the last 0 bytes on Windows
because it likely signals EOF before that. We do not really need to
check it so only non 0 lines are printed.
2022-10-23 16:57:59 +01:00
Jakub Zelenka
b8d013a48d
Merge branch 'PHP-8.2'
2022-10-23 12:41:51 +01:00
Jakub Zelenka
b732d80329
Fix bug GH-9779: stream_copy_to_stream fail when dest in append mode
2022-10-23 12:40:22 +01:00
George Peter Banyard
66661ae682
Remove most usages of zend_fcall_info_args()
...
This reallocates the PHP array when one can just use the named_params fields to pass the positional arguments instead.
Only usage of zend_fcall_info_args(_ex) remains in PDO.
2022-10-21 18:31:40 +01:00
Ilija Tovilo
8e98473360
Merge branch 'PHP-8.2'
...
* PHP-8.2:
[skip ci] Mark frequently failing hrtime test as XFAIL
2022-10-20 11:00:46 +02:00
Ilija Tovilo
182d297891
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[skip ci] Mark frequently failing hrtime test as XFAIL
2022-10-20 11:00:33 +02:00
Ilija Tovilo
2f225b3008
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
[skip ci] Mark frequently failing hrtime test as XFAIL
2022-10-20 11:00:21 +02:00
Ilija Tovilo
4071e18620
[skip ci] Mark frequently failing hrtime test as XFAIL
2022-10-20 10:59:07 +02:00
Jakub Zelenka
18fe337bae
Fix bug #51056 : fread() on blocking stream will block even if data is available
...
This is applied only on socket connection which already returns
immediately if there is no data in the buffer.
2022-10-16 12:17:47 +01:00
Máté Kocsis
a4fd2609ce
Declare ext/standard constants in stubs - part 9 ( #9717 )
2022-10-13 13:13:36 +02:00
Máté Kocsis
f6ef5fbb0a
Declare ext/standard constants in stubs - part 12 ( #9729 )
2022-10-12 13:04:14 +02:00
Máté Kocsis
c59e94fc9d
Declare ext/stanard constants in stubs - part 11 ( #9728 )
2022-10-12 12:07:03 +02:00
Máté Kocsis
433ed0973a
Declare ext/standard constants in stubs - part 10 ( #9719 )
2022-10-12 08:16:19 +02:00
Christoph M. Becker
2979743ac2
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-9589: dl() segfaults when module is already loaded
Fix GH-9566: disable assembly for Fiber on FreeBSD i386.
2022-10-10 13:37:30 +02:00
Christoph M. Becker
6e0505bf27
Fix GH-9589: dl() segfaults when module is already loaded
...
As of PHP 8.2.0, `zend_module_entry` structures are no longer copied,
so when a module is permanently loaded, and users try to dynamically
load that module again, the structure is corrupted[1], causing a
segfault on shutdown.
We catch that by checking whether any dynamically loaded module is
already loaded, and bailing out in that case without modifying the
`zend_module_entry` structure.
[1] <https://github.com/php/php-src/issues/9589#issuecomment-1263718701 >
Closes GH-9689.
2022-10-10 13:36:57 +02:00