Merge branch 'PHP-8.3'

* PHP-8.3:
  ext/standard: Fix test conflict with I/O tests
This commit is contained in:
Gina Peter Banyard 2024-06-02 17:03:57 +01:00
commit d2a932b8af
No known key found for this signature in database
GPG key ID: 3306078E3194AEBD
2 changed files with 6 additions and 10 deletions

View file

@ -9,7 +9,7 @@ if(! in_array( "string.rot13", $filters )) die( "skip rot13 filter not available
<?php <?php
echo "*** Testing stream_filter_remove() : basic functionality ***\n"; echo "*** Testing stream_filter_remove() : basic functionality ***\n";
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt'; $file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestBasics.txt';
touch( $file ); touch( $file );
$fp = fopen( $file, 'w+' ); $fp = fopen( $file, 'w+' );
@ -27,10 +27,8 @@ fclose( $fp );
?> ?>
--CLEAN-- --CLEAN--
<?php <?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestBasics.txt';
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt'; @unlink($file);
unlink( $file );
?> ?>
--EXPECT-- --EXPECT--
*** Testing stream_filter_remove() : basic functionality *** *** Testing stream_filter_remove() : basic functionality ***

View file

@ -7,7 +7,7 @@ if(! in_array( "string.rot13", $filters )) die( "skip rot13 filter not available
?> ?>
--FILE-- --FILE--
<?php <?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt'; $file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestErrors.txt';
touch( $file ); touch( $file );
$fp = fopen( $file, 'w+' ); $fp = fopen( $file, 'w+' );
$filter = stream_filter_append( $fp, "string.rot13", STREAM_FILTER_WRITE ); $filter = stream_filter_append( $fp, "string.rot13", STREAM_FILTER_WRITE );
@ -35,10 +35,8 @@ fclose( $fp );
?> ?>
--CLEAN-- --CLEAN--
<?php <?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestErrors.txt';
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt'; @unlink($file);
unlink( $file );
?> ?>
--EXPECT-- --EXPECT--
*** Testing stream_filter_remove() : error conditions *** *** Testing stream_filter_remove() : error conditions ***