#30803 [Opn->Bgs]: Function Repeat Twice
| From: | derick@php.net | Date: | Tue, 16 Nov 2004 07:34:54 +0000 |
| Subject: | #30803 [Opn->Bgs]: Function Repeat Twice | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69123@lists.php.net to get a copy of this message | ||
ID: 30803
Updated by: derick@php.net
Reported By: icui at email dot it
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: Linux 2.6.3
PHP Version: 4.3.9
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2004-11-16 01:39:17] icui at email dot it
Description:
------------
The following script generates two files copies.
The same script executed without Apache works properly and generates
single file copy.
With $URL_CSS_ defined works properly. (row 13)
Deleting row 15 works properly.
Apache seems to execute twice the script, second in background. I don't
understand why.
Tested with:
Php 5.0.1 - 4.3.9 - 4.3.4
On Linux System kernel 2.4, 2.6
NB. In Windows seems to work properly. (not tested personally)
Reproduce code:
---------------
<?
$id = uniqid('bug');
$wrk_dir = ''; // Working Directory
$src_file = 'grab.jpg'; // Source File
$dst_file = 'tmpgrab_'.$id.'.jpg'; // New File
echo 'Source File ='.$src_file.'<br />'; // Print Source File
Name
echo 'Destination File ='.$dst_file.'<br />'; // Print Destination
File Name
if (!copy($wrk_dir.$src_file, $wrk_dir.$dst_file)) {
echo 'Failed to copy.<br />';
}
//$URL_CSS_='string';
?>
<link rel="stylesheet" href="<?=$URL_CSS_?>" type="text/css"
/>
Expected result:
----------------
I expect that a new file is created in my $wrk_dir
Actual result:
--------------
Script generates two copies from original file.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30803&edit=1