Req #74772 [NEW]: splfileobject lock and unavailable FCLOSE, REMOVE file.

From: Date: Sat, 17 Jun 2017 13:05:49 +0000
Subject: Req #74772 [NEW]: splfileobject lock and unavailable FCLOSE, REMOVE file.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209563@lists.php.net to get a copy of this message
From:             anatoliy dot danchuk dot softimus at gmail dot com
Operating system: Ubuntu
PHP version:      7.0.20
Package:          SPL related
Bug Type:         Feature/Change Request
Bug description:splfileobject lock and unavailable FCLOSE, REMOVE file.

Description:
------------
---
From manual page: http://www.php.net/class.splfileobject
---
How delete/remove/rename file after create object ? 

http://ua2.php.net/manual/en/class.splfileobject.php#113149

Test script:
---------------
<?php 
$file_object = new SplFileObject(__FILE__);

// $file_object->closeFile(); 
// $file_object->fclose();
 $file_object->close();
// $file_object->unlink();
 $file_object->remove();
// $file_object->rename();
// $file_object->move();

Expected result:
----------------
after $file_object = new SplFileObject(__FILE__);
I can close file descriptor, delete file.




-- 
Edit bug report at https://bugs.php.net/bug.php?id=74772&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=74772&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=74772&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=74772&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=74772&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=74772&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=74772&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=74772&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=74772&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=74772&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=74772&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=74772&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=74772&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=74772&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74772&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=74772&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=74772&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=74772&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74772&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=74772&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=74772&r=mysqlcfg



Thread (2 messages)

« previous php.bugs (#209563) next »