ID: 34829 User updated by: kylnas at tiscali dot it Reported By: kylnas at tiscali dot it -Status: Feedback +Status: Open Bug Type: Filesystem function related Operating System: Linux PHP Version: 4.4.0 New Comment:
error_reporting: display_error=off Local value=2039 Master value=2047 Previous Comments: ------------------------------------------------------------------------ [2005-10-12 23:43:33] [EMAIL PROTECTED] Use phpinfo(); to see values of the options I was asking about. ------------------------------------------------------------------------ [2005-10-12 23:39:37] kylnas at tiscali dot it This is the message i obtain with your code: bool(false) I don't know how see your question about error, sorry...=(( ------------------------------------------------------------------------ [2005-10-12 23:27:10] [EMAIL PROTECTED] So they have totally different owners and groups. Ok, at least this is a useful info. Now please do the following: <? var_dump(file_exists("/var/www/vhosts/mydomain/httpdocs/images/products/thumbnails/101D0-86_jpg_thumb_75x75.jpg")); ?> (or whatever the absolute path should be). And tell me plz: safe_mode is On or Off? And what's your error_reporting level along with display_errors ? ------------------------------------------------------------------------ [2005-10-12 23:12:52] kylnas at tiscali dot it This is the ls -l tmp.gif: -rw-r--r-- 1 XXXXX psacln 0 Oct 12 22:16 tmp.gif This is the ls -l 101D0-86_jpg_thumb_200x200.jpg -rw-r--r-- 1 apache apache 19056 Oct 12 16:47 101D0-86_jpg_thumb_200x200.jpg How can i give you a *short* but *complete* reproduce case? The only thing i know is there are 2 files in the same directory, with the same permissions, that have 2 different behavoiur with the same function. By the way, it doesn't matter my directory structure, cause I get the same error. Anyway it's: '/var/www/vhosts/mydomain/httpdocs/" I try: <?php $tmp_img = imagecreatetruecolor($_GET['w'],$_GET['h']); $th_bg_color = imagecolorallocate($tmp_img, $r, $g, $b); imagefill($tmp_img, 0, 0, $th_bg_color); imagecolortransparent($tmp_img, $th_bg_color); $src = imagecreatefromjpeg($_GET['img']); imagecopyresampled($tmp_img, $src, 0, 0, 0, 0, $_GET['w'], $_GET['h'], $image[0], $image[1]); ?> ------------------------------------------------------------------------ [2005-10-12 22:46:34] [EMAIL PROTECTED] Please re-read my last post. And don't paste huge scripts not related to the reproduce code if not asked for. Basically what I need to reproduce it: 1) permissions on the files you can't find (I'm sure the filetype and the way you create them doesn't matter). short version: do `ls -l <file>` and paste the result here. 2) a *short* but *complete* reproduce case I can copy/paste and test it. most likely I'll need to know your directory structure too (because you refuse to use absolute paths). ------------------------------------------------------------------------ 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/34829 -- Edit this bug report at http://bugs.php.net/?id=34829&edit=1