image/file creation with 4.4.1

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ulf Schleth

    image/file creation with 4.4.1

    hi,

    since i switched from 4.3.11 to php 4.4.1, i do have problems with scripts
    which use the 'resize.php' class (see
    http://www.phpclasses.org/browse/file/4571.html ) with following
    error-messages:

    PHP Warning: imagejpeg(): Unable to access
    /www/www.bla.de/dbimages/image/60_kl.jpg in
    /www/www.bla.de/admin/resize.php on line 136
    [01-Nov-2005 20:35:16] PHP Warning: imagejpeg(): Invalid
    filename '/www/www.bla.de/dbimages/image/60_kl.jpg' in
    /www/www.bla.de/admin/resize.php on line 136

    file-permissons of script and files are correct,
    safe_mode ist on, safe_mode_gid also. here is the related row from
    resize.php:

    imageJPEG($this->img["des"],"$save",$th is->img["quality"]);

    this doesn't work, when i am trying to create a new image-file,
    but it does if i overwrite one. an image which is written directly by the
    script which includes resize.php, is written properly.

    an idea, anybody?

    thanks,
    u.
  • roliroller@yahoo.de

    #2
    Re: image/file creation with 4.4.1


    Ulf Schleth schrieb:
    [color=blue]
    > hi,
    >
    > since i switched from 4.3.11 to php 4.4.1, i do have problems with scripts
    > which use the 'resize.php' class (see
    > http://www.phpclasses.org/browse/file/4571.html ) with following
    > error-messages:
    >
    > PHP Warning: imagejpeg(): Unable to access
    > /www/www.bla.de/dbimages/image/60_kl.jpg in
    > /www/www.bla.de/admin/resize.php on line 136
    > [01-Nov-2005 20:35:16] PHP Warning: imagejpeg(): Invalid
    > filename '/www/www.bla.de/dbimages/image/60_kl.jpg' in
    > /www/www.bla.de/admin/resize.php on line 136
    >
    > file-permissons of script and files are correct,
    > safe_mode ist on, safe_mode_gid also. here is the related row from
    > resize.php:
    >
    > imageJPEG($this->img["des"],"$save",$th is->img["quality"]);
    >
    > this doesn't work, when i am trying to create a new image-file,
    > but it does if i overwrite one. an image which is written directly by the
    > script which includes resize.php, is written properly.
    >
    > an idea, anybody?
    >
    > thanks,
    > u.[/color]

    This is a bug in PHP 4.4.1 :
    bugs.php.net/bug.php?id=3506 0

    Comment

    Working...