ID:               34829
 Updated by:       [EMAIL PROTECTED]
 Reported By:      kylnas at tiscali dot it
-Status:           Open
+Status:           Feedback
 Bug Type:         Filesystem function related
 Operating System: Linux
 PHP Version:      4.4.0
 New Comment:

"A reproduce script" means I need a script that I can copy/paste and
reproduce the problem. Probably, with some additional actions (like
creating a certain file etc.).

How do you suppose I should reproduce the problem with the script
you've given? Obviously I don't have all your files here.


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

[2005-10-12 22:19:53] kylnas at tiscali dot it

This is the code:
<?php
  $filename =
'../images/products/thumbnails/101D0-86_jpg_thumb_75x75.jpg';
  echo 'File does exist but it is not found: ' . $filename . '<br />';
  echo 'If you copy the destination in a browser the file is visible<br
/>';
        if (file_exists($filename))
    echo 'YES<br />';
  else
    echo 'NO<br /><br />';

  $filename1 = '../images/products/thumbnails/tmp_gif';
  echo 'File (in the same directory)) does exist and it is found: ' .
$filename1 . '<br />';
        if (file_exists('../images/products/thumbnails/tmp.gif'))
    echo 'YES<br />';
  else
    echo 'NO<br />';
?>

This is the online link:
http://81.174.30.88/tmp/tmp.php

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

[2005-10-11 16:11:07] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.



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

[2005-10-11 16:09:31] kylnas at tiscali dot it

Description:
------------
PHP 4.3.11
file_exists() doesn't works for some file (created by gd libray),
instead if i create manually a file in the SAME directory the function
works.

Reproduce code:
---------------
$file = 'images/products/thumbnails/11940-77_jpg_thumb_80x68.jpg';      if
(file_exists($file))
 echo 'yes';
else
 echo 'no';

Expected result:
----------------
YES.

The file does exist.

Actual result:
--------------
NO. If I create a file in the same directory (like "tmp.gif") and I use
the same function i get a "Yes" result.


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


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

Reply via email to