[PEPr] Comment on System::System_Folders
| From: | Stefano F. Rausch | Date: | Thu, 02 Feb 2006 20:19:50 +0000 |
| Subject: | [PEPr] Comment on System::System_Folders | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-41184@lists.php.net to get a copy of this message | ||
Stefano F. Rausch (http://pear.php.net/user/sfrausch) has commented on the proposal for
System::System_Folders.
Comment:
This is a nice idea.
However, having tried out your proposal on a German XP box, the following
issues have to be addressed, keeping in mind that I run PHP 5.1.2 with
E_STRICT:
M:\SDev>pear install System_Folders-0.1.0.tgz
install ok: channel://pear.php.net/System_Folders-0.1.0
M:\SDev>php ../php/pear/docs/system_folders/examples/example.php
PHP Warning: require_once(Folders.php): failed to open stream: No such
file or directory in M:\PHP\PEAR\docs\system_folders\examples\e
xample.php on line 6
PHP Fatal error: require_once(): Failed opening required 'Folders.php'
(include_path='.;M:\PHP;M:\PHP\PEAR;M:\PHP\PEAR\tests;M:\SDev;M
:\SDev\WinBinder') in M:\PHP\PEAR\docs\system_folders\examples\example.php
on line 6
M:\SDev>php ../php/pear/docs/system_folders/examples/example.php
PHP Strict Standards: var: Deprecated. Please use the
public/private/protected modifiers in M:\PHP\PEAR\System\Folders.php on
line 56
PHP Strict Standards: var: Deprecated. Please use the
public/private/protected modifiers in M:\PHP\PEAR\OS\Guess.php on line
102
PHP Strict Standards: var: Deprecated. Please use the
public/private/protected modifiers in M:\PHP\PEAR\OS\Guess.php on line
103
PHP Strict Standards: var: Deprecated. Please use the
public/private/protected modifiers in M:\PHP\PEAR\OS\Guess.php on line
104
PHP Strict Standards: var: Deprecated. Please use the
public/private/protected modifiers in M:\PHP\PEAR\OS\Guess.php on line
105
PHP Strict Standards: var: Deprecated. Please use the
public/private/protected modifiers in M:\PHP\PEAR\OS\Guess.php on line
106
array(8) {
["Home"]=>
NULL
["Documents"]=>
NULL
["Shared documents"]=>
NULL
["Temp"]=>
string(16) "C:\WINDOWS\Temp\"
["Desktop"]=>
NULL
["AppData"]=>
NULL
["Programs"]=>
string(13) "C:\Programme\"
["Windows"]=>
string(11) "C:\WINDOWS\"
}
After having corrected the import of 'Folders.php' to
'System/Folders.php', the example gives the above stated information.
Cursory code review:
- require_once is a language construct and not a function
- please try to be more PCS compliant, e.g. EOL at the file's end, file
doc block not complete etc.
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=350
--
Sent by PEPr, the automatic proposal system at http://pear.php.net