Bug #70315 [Opn->Fbk]: imagecreatefromstring() returns 500 Server Error but page full renderized
From: cmb@php.net Date: Tue, 21 Jun 2016 21:32:50 +0000 Subject: Bug #70315 [Opn->Fbk]: imagecreatefromstring() returns 500 Server Error but page full renderized References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-201781@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70315&edit=1
ID: 70315
Updated by: cmb@php.net
Reported by: patriciotarantino at gmail dot com
Summary: imagecreatefromstring() returns 500 Server Error but
page full renderized
-Status: Open
+Status: Feedback
Type: Bug
Package: GD related
Operating System: Ubuntu
PHP Version: 5.6.12
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> If you use imagecreatefromstring() with an invalid string, it
> returns a 500 Internal Server Error in the HTTP headers, [â¦]
Indeed, that is not supposed to happen, and I can't reproduce it,
actually. Please double-check with any of the recent PHP versions
(5.5.36, 5.6.22, 7.0.7).
Previous Comments:
------------------------------------------------------------------------
[2015-08-20 19:24:49] patriciotarantino at gmail dot com
Description:
------------
Condition: display_errors is off.
If you use imagecreatefromstring() with an invalid string, it returns a 500 Internal Server Error in
the HTTP headers, but the page is fully renderized. It should return 200 OK (and the full page), or
a 500 Error but without the full HTML. Not both at the same time.
5.3.10 and 5.4.44 are not affected.
5.5.9 and 5.6.12 are affected.
Test script:
---------------
<?php
ini_set("display_errors", 0);
$data = "iVBORw0KGgoAAAANSUhEUgAAAuwAAAUeCAYAAAAl3WR...LkAAAAAElFTkSuQmCC";
$data = base64_decode($data);
$im = imagecreatefromstring($data);
echo "This should not render";
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70315&edit=1
Thread (17 messages)
- Bug #70315 [Opn->Fbk]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Fbk]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Com]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Fbk->NoF]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [NoF->Opn]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Asn->Fbk]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Com]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Com]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Fbk->Opn]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Asn]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Com]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Com]: imagecreatefromstring() returns 500 Server Error but page full renderized
- Bug #70315 [Asn->Ana]: imagecreatefromstring() returns 500 Server Error but page is fully rendered
- Bug #70315 [Ana->Csd]: imagecreatefromstring() returns 500 Server Error but page is fully rendered
- Bug #70315 [Com]: imagecreatefromstring() returns 500 Server Error but page is fully rendered
- Bug #70315 [Csd]: imagecreatefromstring() returns 500 Server Error but page is fully rendered
| « previous | php.bugs (#201781) | next » |
|---|