From:             bijan at tehranto dot com
Operating system: Linux
PHP version:      5.0.0b2 (beta2)
PHP Bug Type:     Compile Warning
Bug description:  Not Using Remote Paths

Description:
------------
When using either imageSX or imageSY or imageCreateFromJpeg and etc.  The
compiler does not allow imageSX('myimg.php?index=10') (Note: The file does
exist and it is in the correct path)

Reproduce code:
---------------
for($i = 1; $i <= mysql_num_rows($result) ; $i++) {

$record = mysql_fetch_row($result);
$pics[$i]['src'] = "pg_im_full_by_id.php?ind=".$record[0];
                        
$newIMG = imagecreatefromjpeg('pg_im_full_by_id.php?ind='.$record[0]);

$pics[$i]['width'] = imageSX($newIMG);
$pics[$i]['height'] = imageSY($newIMG);

}


Expected result:
----------------
Create an image using the source file, take its attributes and assign to
the array.

Actual result:
--------------
Warning: imagesx(): supplied argument is not a valid Image resource

-- 
Edit bug report at http://bugs.php.net/?id=26195&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26195&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26195&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26195&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26195&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26195&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26195&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26195&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26195&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26195&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26195&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26195&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26195&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26195&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26195&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26195&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26195&r=float

Reply via email to