Bug #36473 [Com]: Foreign Images w/getimagesize() crash Apache2

2010-07-06 Thread nooshin dot ha at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=36473&edit=1

 ID:   36473
 Comment by:   nooshin dot ha at gmail dot com
 Reported by:  punkpuke at terraimpetus dot com
 Summary:  Foreign Images w/getimagesize() crash Apache2
 Status:   Closed
 Type: Bug
 Package:  Apache2 related
 Operating System: Windows XP Pro
 PHP Version:  4.4.2

 New Comment:

well, I think I solved the problem by myself! we defined a sub domain
for our images (e.g images.example.com) and we address the images to the
function with this url-base method! I changed it to directory-base like
this "/images/"and it works fine!!! however I used linux server ...


Previous Comments:

[2010-07-07 08:01:38] nooshin dot ha at gmail dot com

I have the same problem! even though there is sentence at the bottom of
this page which claims the problem has been solved! I PHP 5.2.8 and
Apache 2! as soon as I deactivate the part of code which uses the
get_image_size function everything's ok! but if I let it run, Apaches
crash and MySQL returns hundreds of Null Sleep State queries because it
can not connect to Apache!

I wanna know what PHP & Apache version support the function with out
problem?



P.S: unfortunately due to Apache crash, the log file doesn't return any
error..


[2006-04-05 06:37:33] tony2...@php.net

This bug has been fixed in CVS 3 months ago.


[2006-04-05 02:57:51] nospam at fidk dot com

Get the same problem (PHP crashes) with fopen as well as file and
file_get_contents.  Under 4.2.2.  Try this code:



http://".$host.$location;

   $fd = fopen($pirepUrl, "rb");



   echo("Done");





?>


[2006-03-16 15:07:48] jaroslav dot povolny at gmail dot com

I have just installed back 4.4.1 version and the bug disappeared. It is
definetelly 4.4.2 bug, it is somewhere in file() or file_get_contents().
Platform: Windows XP


[2006-03-16 15:03:45] jaroslav dot povolny at gmail dot com

I am getting the same error without Apache environment when using
function file_get_contents() and file() with http protocol... I think it
is connected




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=36473


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=36473&edit=1


Bug #36473 [Com]: Foreign Images w/getimagesize() crash Apache2

2010-07-06 Thread nooshin dot ha at gmail dot com
Edit report at http://bugs.php.net/bug.php?id=36473&edit=1

 ID:   36473
 Comment by:   nooshin dot ha at gmail dot com
 Reported by:  punkpuke at terraimpetus dot com
 Summary:  Foreign Images w/getimagesize() crash Apache2
 Status:   Closed
 Type: Bug
 Package:  Apache2 related
 Operating System: Windows XP Pro
 PHP Version:  4.4.2

 New Comment:

I have the same problem! even though there is sentence at the bottom of
this page which claims the problem has been solved! I PHP 5.2.8 and
Apache 2! as soon as I deactivate the part of code which uses the
get_image_size function everything's ok! but if I let it run, Apaches
crash and MySQL returns hundreds of Null Sleep State queries because it
can not connect to Apache!

I wanna know what PHP & Apache version support the function with out
problem?



P.S: unfortunately due to Apache crash, the log file doesn't return any
error..


Previous Comments:

[2006-04-05 06:37:33] tony2...@php.net

This bug has been fixed in CVS 3 months ago.


[2006-04-05 02:57:51] nospam at fidk dot com

Get the same problem (PHP crashes) with fopen as well as file and
file_get_contents.  Under 4.2.2.  Try this code:



http://".$host.$location;

   $fd = fopen($pirepUrl, "rb");



   echo("Done");





?>


[2006-03-16 15:07:48] jaroslav dot povolny at gmail dot com

I have just installed back 4.4.1 version and the bug disappeared. It is
definetelly 4.4.2 bug, it is somewhere in file() or file_get_contents().
Platform: Windows XP


[2006-03-16 15:03:45] jaroslav dot povolny at gmail dot com

I am getting the same error without Apache environment when using
function file_get_contents() and file() with http protocol... I think it
is connected


[2006-03-01 01:00:03] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

http://bugs.php.net/bug.php?id=36473


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=36473&edit=1


#36473 [Com]: Foreign Images w/getimagesize() crash Apache2

2006-04-04 Thread nospam at fidk dot com
 ID:   36473
 Comment by:   nospam at fidk dot com
 Reported By:  punkpuke at terraimpetus dot com
 Status:   No Feedback
 Bug Type: Apache2 related
 Operating System: Windows XP Pro
 PHP Version:  4.4.2
 New Comment:

Get the same problem (PHP crashes) with fopen as well as file and
file_get_contents.  Under 4.2.2.  Try this code:

http://".$host.$location;
   $fd = fopen($pirepUrl, "rb");

   echo("Done");


?>


Previous Comments:


[2006-03-16 15:07:48] jaroslav dot povolny at gmail dot com

I have just installed back 4.4.1 version and the bug disappeared. It is
definetelly 4.4.2 bug, it is somewhere in file() or file_get_contents().
Platform: Windows XP



[2006-03-16 15:03:45] jaroslav dot povolny at gmail dot com

I am getting the same error without Apache environment when using
function file_get_contents() and file() with http protocol... I think
it is connected



[2006-03-01 01:00:03] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-02-27 21:33:42] stitched at mindspring dot com

I can confirm that this problem is fixed with 5.1.2.  I didn't see a
backtrace version for 4.4.2 so was unable to get one.  But something is
certainly broken in 4.4.2.

Dave



[2006-02-27 17:16:40] stitched at mindspring dot com

This also happens with Apache 1.3.33 and 2.0.54 consistently with 4.4.2
on Windows 2000.  Will try to get a backtrack but given where and when
it's crashing it may not work.

Dave



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/36473

-- 
Edit this bug report at http://bugs.php.net/?id=36473&edit=1


#36473 [Com]: Foreign Images w/getimagesize() crash Apache2

2006-03-16 Thread jaroslav dot povolny at gmail dot com
 ID:   36473
 Comment by:   jaroslav dot povolny at gmail dot com
 Reported By:  punkpuke at terraimpetus dot com
 Status:   No Feedback
 Bug Type: Apache2 related
 Operating System: Windows XP Pro
 PHP Version:  4.4.2
 New Comment:

I have just installed back 4.4.1 version and the bug disappeared. It is
definetelly 4.4.2 bug, it is somewhere in file() or file_get_contents().
Platform: Windows XP


Previous Comments:


[2006-03-16 15:03:45] jaroslav dot povolny at gmail dot com

I am getting the same error without Apache environment when using
function file_get_contents() and file() with http protocol... I think
it is connected



[2006-03-01 01:00:03] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-02-27 21:33:42] stitched at mindspring dot com

I can confirm that this problem is fixed with 5.1.2.  I didn't see a
backtrace version for 4.4.2 so was unable to get one.  But something is
certainly broken in 4.4.2.

Dave



[2006-02-27 17:16:40] stitched at mindspring dot com

This also happens with Apache 1.3.33 and 2.0.54 consistently with 4.4.2
on Windows 2000.  Will try to get a backtrack but given where and when
it's crashing it may not work.

Dave



[2006-02-24 13:59:44] Peter at ibforen dot de

I have had a similar problem with IIS and php.exe:

With external urls getimagesize causes an indefinite loop in that
function.

Using the isapi module php4isapi.dll solves the problem.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/36473

-- 
Edit this bug report at http://bugs.php.net/?id=36473&edit=1


#36473 [Com]: Foreign Images w/getimagesize() crash Apache2

2006-03-16 Thread jaroslav dot povolny at gmail dot com
 ID:   36473
 Comment by:   jaroslav dot povolny at gmail dot com
 Reported By:  punkpuke at terraimpetus dot com
 Status:   No Feedback
 Bug Type: Apache2 related
 Operating System: Windows XP Pro
 PHP Version:  4.4.2
 New Comment:

I am getting the same error without Apache environment when using
function file_get_contents() and file() with http protocol... I think
it is connected


Previous Comments:


[2006-03-01 01:00:03] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2006-02-27 21:33:42] stitched at mindspring dot com

I can confirm that this problem is fixed with 5.1.2.  I didn't see a
backtrace version for 4.4.2 so was unable to get one.  But something is
certainly broken in 4.4.2.

Dave



[2006-02-27 17:16:40] stitched at mindspring dot com

This also happens with Apache 1.3.33 and 2.0.54 consistently with 4.4.2
on Windows 2000.  Will try to get a backtrack but given where and when
it's crashing it may not work.

Dave



[2006-02-24 13:59:44] Peter at ibforen dot de

I have had a similar problem with IIS and php.exe:

With external urls getimagesize causes an indefinite loop in that
function.

Using the isapi module php4isapi.dll solves the problem.



[2006-02-21 23:10:44] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/36473

-- 
Edit this bug report at http://bugs.php.net/?id=36473&edit=1


#36473 [Com]: Foreign Images w/getimagesize() crash Apache2

2006-02-27 Thread stitched at mindspring dot com
 ID:   36473
 Comment by:   stitched at mindspring dot com
 Reported By:  punkpuke at terraimpetus dot com
 Status:   Feedback
 Bug Type: Apache2 related
 Operating System: Windows XP Pro
 PHP Version:  4.4.2
 New Comment:

I can confirm that this problem is fixed with 5.1.2.  I didn't see a
backtrace version for 4.4.2 so was unable to get one.  But something is
certainly broken in 4.4.2.

Dave


Previous Comments:


[2006-02-27 17:16:40] stitched at mindspring dot com

This also happens with Apache 1.3.33 and 2.0.54 consistently with 4.4.2
on Windows 2000.  Will try to get a backtrack but given where and when
it's crashing it may not work.

Dave



[2006-02-24 13:59:44] Peter at ibforen dot de

I have had a similar problem with IIS and php.exe:

With external urls getimagesize causes an indefinite loop in that
function.

Using the isapi module php4isapi.dll solves the problem.



[2006-02-21 23:10:44] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2006-02-21 20:04:02] punkpuke at terraimpetus dot com

I would love to help, however those instructions aren't detailed enough
for me to do anything.  I need to know the exact files I need and where
to put them.  I'm sorry, I'm not that smart. :(



[2006-02-21 13:52:32] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Works fine here.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/36473

-- 
Edit this bug report at http://bugs.php.net/?id=36473&edit=1


#36473 [Com]: Foreign Images w/getimagesize() crash Apache2

2006-02-27 Thread stitched at mindspring dot com
 ID:   36473
 Comment by:   stitched at mindspring dot com
 Reported By:  punkpuke at terraimpetus dot com
 Status:   Feedback
 Bug Type: Apache2 related
 Operating System: Windows XP Pro
 PHP Version:  4.4.2
 New Comment:

This also happens with Apache 1.3.33 and 2.0.54 consistently with 4.4.2
on Windows 2000.  Will try to get a backtrack but given where and when
it's crashing it may not work.

Dave


Previous Comments:


[2006-02-24 13:59:44] Peter at ibforen dot de

I have had a similar problem with IIS and php.exe:

With external urls getimagesize causes an indefinite loop in that
function.

Using the isapi module php4isapi.dll solves the problem.



[2006-02-21 23:10:44] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2006-02-21 20:04:02] punkpuke at terraimpetus dot com

I would love to help, however those instructions aren't detailed enough
for me to do anything.  I need to know the exact files I need and where
to put them.  I'm sorry, I'm not that smart. :(



[2006-02-21 13:52:32] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Works fine here.



[2006-02-21 10:50:07] punkpuke at terraimpetus dot com

Description:

When accessing foreign URLs with getimagesize(), apache server crashes
with:

szAppName : Apache.exe szAppVer : 2.0.55.0 szModName :
php4ts.dll 
szModVer : 4.4.2.2 offset : 000c5fca

-
The only changes made to the PHP.ini file were the enabling/removing
the comment in front of the GD2 and the ZIP, DLL extensions.

Server is running as a test environment on localhost.

Reproduce code:
---
http://example.com/example/example.jpg');//Crashes 
getimagesize('http://example.com/example.jpg'); //Crashes 
getimagesize('http://example.com/example.gif'); //Crashes
@getimagesize('http://example.com/example.gif'); //Crashes
?>

Expected result:

Apache 2 Servers lags for a slight moment, then crashes 100% of the
time that a page using a foreign URL call to getimagesize() is run.






-- 
Edit this bug report at http://bugs.php.net/?id=36473&edit=1


#36473 [Com]: Foreign Images w/getimagesize() crash Apache2

2006-02-24 Thread Peter at ibforen dot de
 ID:   36473
 Comment by:   Peter at ibforen dot de
 Reported By:  punkpuke at terraimpetus dot com
 Status:   Feedback
 Bug Type: Apache2 related
 Operating System: Windows XP Pro
 PHP Version:  4.4.2
 New Comment:

I have had a similar problem with IIS and php.exe:

With external urls getimagesize causes an indefinite loop in that
function.

Using the isapi module php4isapi.dll solves the problem.


Previous Comments:


[2006-02-21 23:10:44] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip





[2006-02-21 20:04:02] punkpuke at terraimpetus dot com

I would love to help, however those instructions aren't detailed enough
for me to do anything.  I need to know the exact files I need and where
to put them.  I'm sorry, I'm not that smart. :(



[2006-02-21 13:52:32] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

Works fine here.



[2006-02-21 10:50:07] punkpuke at terraimpetus dot com

Description:

When accessing foreign URLs with getimagesize(), apache server crashes
with:

szAppName : Apache.exe szAppVer : 2.0.55.0 szModName :
php4ts.dll 
szModVer : 4.4.2.2 offset : 000c5fca

-
The only changes made to the PHP.ini file were the enabling/removing
the comment in front of the GD2 and the ZIP, DLL extensions.

Server is running as a test environment on localhost.

Reproduce code:
---
http://example.com/example/example.jpg');//Crashes 
getimagesize('http://example.com/example.jpg'); //Crashes 
getimagesize('http://example.com/example.gif'); //Crashes
@getimagesize('http://example.com/example.gif'); //Crashes
?>

Expected result:

Apache 2 Servers lags for a slight moment, then crashes 100% of the
time that a page using a foreign URL call to getimagesize() is run.






-- 
Edit this bug report at http://bugs.php.net/?id=36473&edit=1