PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
PEAR and System.php

Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR
View previous topic :: View next topic  
Author Message

Joined: 12 Jan 2011
Posts: 1
Location: Japan

PostPosted: Fri Jan 14, 2011 1:06 pm    Post subject: PEAR and System.php Reply with quote


I'm not a professional PHP nor PEAR programmer, but recently I have a question related to System.php.
PEAR 1.9.1 installs a file System.php and this file defines "System" class and this "System" class defines some file handling functions.

When I read the documentation and it says:

System provides an API for cross platform compatible commandline programs

So I think it is for some of command line utilities and will not used with programs running under Web server.
But some PEAR package use System.php for compatible file handling function. AFAIK, OLE and I18n_UnicodeNormalizer packages might use.
Now, if someone want to use such PEAR package on other PHP based system and the system uses its own "System" class, class name conflict between them and no luck.

I want to know, what's wrong?

1. The system using "System" should be change its class?
2. A PEAR package using System.php is mistake something?

If 1. is correct, I don't belive that such generic name "System" without some prefix used. Sad
If 2. is correct, I should fill bug reports, maybe.

Thanks in advice.
Takahiro Kambe
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> PEAR All times are GMT + 2 Hours
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement