#37534 [NEW]: Apache crashes when using copy() function and a URL as source (src)
From: compudyne23-php at yahoo dot com
Operating system: Windows XP Pro
PHP version: 4.4.2
PHP Bug Type: Reproducible crash
Bug description: Apache crashes when using copy() function and a URL as source (src)
Description:
------------
I just installed Apache 1.3.35, PHP 4.4.2, and MySQL 4.1.19 on my Windows
XP Pro system so I could develop a web site locally. All my scripts work
on the remote site just fine, with the same versions of Apache, PHP, and
MySQL (or extremely close versions).
In one script, it calls the copy() function and copies an image (from a
URL) to the server root. Like I said, it works fine with our hosting
company; however, when testing the site locally, Apache crashes when the
copy() line is executed.
For a simple test, I created test.php and included this single line of
code:
<?php copy("http://www.google.com/intl/en/images/logo.gif",
"c:\test.gif"); ?>
When run, Apache crashes, with no error message or indication as to why.
Safe mode is disabled, open_basedir is not used, and I have done a lot of
research without anything turning up.
Thank you for time. I hope this is resolved quickly.
-J-
Reproduce code:
---------------
copy("http://www.google.com/intl/en/images/logo.gif",
"c:\test.gif");
Expected result:
----------------
It should work...
Actual result:
--------------
Apache crashes.
--
Edit bug report at http://bugs.php.net/?id=37534&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37534&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37534&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37534&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37534&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37534&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37534&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37534&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37534&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37534&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37534&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37534&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37534&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37534&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37534&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37534&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37534&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37534&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37534&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37534&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37534&r=mysqlcfg
Thread (4 messages)
- compudyne23-php at yahoo dot com