mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-8.3'
* PHP-8.3: ext/standard: Fix test conflict with I/O tests
This commit is contained in:
commit
d2a932b8af
2 changed files with 6 additions and 10 deletions
|
@ -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 ***
|
||||
|
|
|
@ -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 ***
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue