From: janitor at wonkavision dot net
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: imagecreatefromjpeg() requires absolute path + docs dont make that
clear
Description:
------------
The other day I spent 2 hours trying to find a bug in my code becasue
imagecreatefromjpeg() requires absolute path and the docs dont make it
clear that you cannot use a relative path. There is a user comment about
this, but I think it probably needs to be in the docs.
Thanks for the help!
Reproduce code:
---------------
imagecreatefromjpeg("nextdir/filename.jpg");
it should be something like
imagecreatefromjpeg("var/www/project/nextdir/filename.jpg");
Expected result:
----------------
no output
--
Edit bug report at http://bugs.php.net/?id=30354&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30354&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30354&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30354&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30354&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30354&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30354&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30354&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30354&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30354&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30354&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30354&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30354&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30354&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30354&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30354&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30354&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30354&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30354&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30354&r=mysqlcfg