[opensuse-factory] Watch out PHP changes
12 May
2010
12 May
'10
16:58
Hi: In the next security updates as well in openSUSE factory PHP no longer release the lock of previously locked files, neither automagically at shutdown nor at stream closing so (broken) code like: <?php $fp = fopen('foo.txt','wb'); flock($fp, LOCK_EX); /* write or do whatever with the locked file... */ fclose($fp); ?> Will no longer "unlock" the file in question. This is an upstream change to provide a sane/correct behaviour from now on but it might cause subtle issues. So, you have to explicetely flock($fp,LOCK_UN); before closing the file. Just keep an eye on this. Cheers. Cristian. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
5357
Age (days ago)
5357
Last active (days ago)
0 comments
1 participants
participants (1)
-
Cristian Rodríguez