Merge branch 'PHP-8.2' into PHP-8.3

* PHP-8.2:
  ext/standard: Fix test conflict with I/O tests
This commit is contained in:
Gina Peter Banyard 2024-06-02 17:03:44 +01:00
commit e206b68403
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
echo "*** Testing stream_filter_remove() : basic functionality ***\n";
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt';
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestBasics.txt';
touch( $file );
$fp = fopen( $file, 'w+' );
@ -27,10 +27,8 @@ fclose( $fp );
?>
--CLEAN--
<?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt';
unlink( $file );
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestBasics.txt';
@unlink($file);
?>
--EXPECT--
*** 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--
<?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt';
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestErrors.txt';
touch( $file );
$fp = fopen( $file, 'w+' );
$filter = stream_filter_append( $fp, "string.rot13", STREAM_FILTER_WRITE );
@ -35,10 +35,8 @@ fclose( $fp );
?>
--CLEAN--
<?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTest.txt';
unlink( $file );
$file = __DIR__ . DIRECTORY_SEPARATOR . 'streamfilterTestErrors.txt';
@unlink($file);
?>
--EXPECT--
*** Testing stream_filter_remove() : error conditions ***