From:             rainer dot collet at gmx dot net
Operating system: debian etch
PHP version:      5.2.2
PHP Bug Type:     Output Control
Bug description:  imagegd2 under output control

Description:
------------
imagegd2 does not produce valid gd2 image if used under output control

Reproduce code:
---------------
$strBinary = file_get_contents('test.jpg');
$resHandle = imagecreatefromstring($strBinary);
ob_start();
imagegd2($resHandle);
$strBinary2 = ob_get_clean();
imagecreatefromstring($strBinary2);

>>>imagecreatefromstring($strBinary2) issues warning but following works
fine:

$strBinary = file_get_contents('test.jpg');
$resHandle = imagecreatefromstring($strBinary);
imagegd2($resHandle, 'test.gd2');
$strBinary2 = file_get_contents('test.gd2');
imagecreatefromstring($strBinary2); 

Expected result:
----------------
nothing

Actual result:
--------------
second call to imagecreatefromstring issues
function.imagecreatefromstring: Passed data is not in 'GD2' format

-- 
Edit bug report at http://bugs.php.net/?id=41442&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41442&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41442&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41442&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41442&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41442&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41442&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41442&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41442&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41442&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41442&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41442&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41442&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41442&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41442&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41442&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41442&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41442&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41442&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41442&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41442&r=mysqlcfg

Reply via email to