From: mahesh dot vemula at in dot ibm dot com
Operating system: RHEL4
PHP version: 5CVS-2007-08-08 (CVS)
PHP Bug Type: Performance problem
Bug description: Needs to generate a warning message for copy() when the first
arg is a dir
Description:
------------
On Linux, PHP engine doesn't throw any warning message even if the first
arg is a dir, whereas on Windows it does. According to PHP doc, copy()
function should not work on directories.
Reproduce code:
---------------
<?php
mkdir("temp");
fclose( fopen("temp.txt", "w") );
var_dump( copy("temp", "temp.txt") );
unlink("temp.txt");
rmdir("temp");
?>
Expected result:
----------------
expecting a warning message on Linux
Actual result:
--------------
bool(false)
--
Edit bug report at http://bugs.php.net/?id=42243&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42243&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42243&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42243&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42243&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42243&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42243&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42243&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42243&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42243&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42243&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42243&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42243&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42243&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42243&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42243&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42243&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42243&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42243&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42243&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42243&r=mysqlcfg