php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37534 Apache crashes when using copy() function and a URL as source (src)
Submitted: 2006-05-20 06:05 UTC Modified: 2006-05-21 10:16 UTC
From: compudyne23-php at yahoo dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 4.4.2 OS: Windows XP Pro
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: compudyne23-php at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-05-20 06:05 UTC] compudyne23-php at yahoo dot com
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-20 13:55 UTC] tony2001@php.net
Please search bug database before creating new reports.
Thank you.
 [2006-05-21 02:30 UTC] compudyne23-php at yahoo dot com
I did search the database, and was unable to find the same bug.  I searched for "copy", "apache", "crash", "copy function", etc.

If I missed something, and you know the answer, could you please point me in the right direction?  It doesn't help much to be told to search the database when I already have and came up with nothing.

I expected a slightly more helpful response than that...

-J-
 [2006-05-21 10:16 UTC] tony2001@php.net
It's fixed in CVS several months ago.
There are 20+ reports about it in the database.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 14:01:29 2024 UTC