Menu

#9 flock'ing error

open
nobody
5
2004-03-15
2004-03-15
No

The ImportObjects routine tries to un-flock a file after it
has closed the file pointer, this causes the un-flock to
fail and display a warning message.

Warning: 2 is not a valid File-Handle resource
in /home/jhmartin/nawui/plugins/serialized.inc on line 675

fclose($fp);
$objects = @unserialize($serstr);
flock($fp, LOCK_UN ); // relase lock

Perform the flock / LOCK_UN prior to fclose'ing to resolve
this.

Discussion


Log in to post a comment.