ID:              47315
 User updated by: spam2 at rhsoft dot net
 Reported By:     spam2 at rhsoft dot net
 Status:          Bogus
 Bug Type:        Feature/Change Request
 PHP Version:     5.2.8
 New Comment:

Foolish idiot in the last available german doku is until today no hint
http://www.php.net/manual/de/function.is-file.php
Hinweis: Diese Funktion kann nicht mit entfernten Dateien arbeiten, da
der Zugriff auf
die Datei, die bearbeitet werden soll, über das Dateisystem des Servers
möglich sein muss.

This means it DOES NOT support remote-files, this was years along fact
is documentaded and used at many locations until today and some idiots
think it's cool to make it impossilbe to check if you work with a
local
or a remote file.....

Wow, only 6 years too late to refresh the documentation and if
you i should use the english one - WHY does a german one exists?

Only idiots are making such major changes without thinking what this
can mean for existing applications and to make this joke perfect
it works with some streams (ftp) and some other not (http)
Again: How stupid must a guy be to create such a crap?

And yes i know that i'm not friendly because stupid people
are making me angry - everytime and everywehre!

Even if its documentated - how check if path is local or remote
even if you change the application?


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

[2009-02-05 15:10:11] scott...@php.net

Wow only 6 years too late for suggested changes. Changes were made to
use streams, the end.

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

[2009-02-05 14:54:38] spam2 at rhsoft dot net

Description:
------------
> As of PHP 5.0.0, this function can also be used with some URL 
> wrappers. Refer to List of Supported Protocols/Wrappers for 
> a listing of which wrappers support stat() family of functionality.

Which fool has decided to make such a MAJOR-CHANGE for functions like
"is_file()" as default instead of enable this only with a new optional
parameter?

You will break EVERY check in applications if the given path is a local
file! Revert this completly or add a parameter to enable it
Has anybody ever thougt that this can make SECURITY-PROBLEMS in some
cases? 

I hope no one wites a new function like "is_real_file" as seen at
"mysql_escape_string/mysql_real_escape_string", this is crap and
sometimes i wonder why many people are not thinking before doing!

Reproduce code:
---------------
$path = 'ftp://user:p...@host/file.txt';
if(is_file($path))                                   
{                                                    
 echo 'yes';              
}                                                    
else
{
 echo 'no';
}


Expected result:
----------------
no

Actual result:
--------------
yes 


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


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

Reply via email to