Re: does PHP5 do locking on PHP files that are included

From: Date: Wed, 01 Dec 2004 04:49:24 +0000
Subject: Re: does PHP5 do locking on PHP files that are included
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-13963@lists.php.net to get a copy of this message
I've got a short test script: saved as C:\php5\pear\test.php: <?php $statedir = getcwd(); $fp = fopen($statedir . DIRECTORY_SEPARATOR . 'Tester.php', 'w'); fwrite($fp, '<?php class Tester {} ?>'); fclose($fp); include_once $statedir . DIRECTORY_SEPARATOR . 'Tester.php'; unlink($statedir . DIRECTORY_SEPARATOR . 'Tester.php'); ?> It's *definitely* related to include_once/require_once Greg Output: <br /> <b>Warning</b>: unlink(C:\php5\pear\Tester.php) [<a href='function.unlink'>function.unlink</a>]: Permission denied in <b>C:\php5\pear\test.php</b> on line <b>7</b><br />

« previous php.internals (#13963) next »