mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
@@ -12,4 +12,4 @@ runs:
|
||||
build/gen_stub.php -f
|
||||
build/gen_stub.php --generate-optimizer-info
|
||||
ext/tokenizer/tokenizer_data_gen.php
|
||||
git add . -Nu && git diff --exit-code
|
||||
git add . -N && git diff --exit-code
|
||||
|
||||
@@ -6,12 +6,10 @@ Mark Ammann
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
set_include_path(dirname(__DIR__));
|
||||
|
||||
$path = __DIR__.DIRECTORY_SEPARATOR.'fileobject_005.txt';
|
||||
touch($path);
|
||||
|
||||
$fo = new SplFileObject('tests'.DIRECTORY_SEPARATOR.'fileobject_005.txt', 'w+', true);
|
||||
$fo = new SplFileObject($path, 'w+', true);
|
||||
$fo->fwrite("blahlubba");
|
||||
var_dump($fo->ftruncate(4));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user