For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2006 > #38560 [Opn->Csd]: imagejpeg doesn't output image when '' provided as filename









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #38560 [Opn->Csd]: imagejpeg doesn't output image when '' provided as filename
colder@php.net

2006-08-23, 7:58 am

ID: 38560
Updated by: colder@php.net
Reported By: doques at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: ?
-Assigned To:
+Assigned To: colder
New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.




Previous Comments:
------------------------------------------------------------------------

[2006-08-23 10:06:01] pajoye@php.net

An empty string is an invalid path. If you want to output the image
directly and still change the default compression mode (3rd argument),
pass NULL:

imagejpeg($im, NULL, 60);

It could be added in the image* doc, but it is the way it works for any
other php function with many optional arguments back to doc problem.

------------------------------------------------------------------------

[2006-08-23 09:55:54] tony2001@php.net

Which version are YOU using?

------------------------------------------------------------------------

[2006-08-23 09:52:18] doques at gmail dot com

this is a doc problem. It must state that some versions of PHP (e.g.
prior to 4.3.9 or else) has a bug that doesn't allow to enter empty
string.

------------------------------------------------------------------------

[2006-08-23 09:38:31] derick@php.net

Not a doc problem, so changing category to "GD related".

------------------------------------------------------------------------

[2006-08-23 09:38:26] tony2001@php.net

Please try using this CVS snapshot:

http://snaps.php.net/php5.2-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.2-win32-latest.zip

Please try using this CVS snapshot:

http://snaps.php.net/php5.2-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.2-win32-latest.zip

Please try using this CVS snapshot:

http://snaps.php.net/php5.2-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php5.2-win32-latest.zip

Can't reproduce it.

------------------------------------------------------------------------

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/38560

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







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com