PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_FTP » Bug #3778

Notice of Uninitialized string offset in function _rm_dir_recursive

Details

Submitted2005-03-11 16:05 UTC
Fromcharles at acolytecommunication dot com
Assignedtoby
StatusClosed
PackageNet_FTP
PHP Version4.3.10
OSWindows XP SP2
Roadmaps(Not assigned)

Comments

[2005-03-11 16:05 UTC] charles at acolytecommunication dot com

Description:
------------
Notice: Uninitialized string offset: 0 in D:\Projets\MaisonRRPlus\application\lib\Net\FTP.php on line 1891

The emptyness should be tested before trying to use that string I think.

Only generates a notice, not an error and not even a warning but still...

Reproduce code:
---------------
kinda a hard to reproduce being and error using a remote service. I think the error mostly lies in the way the result of the ls command is handled.

Expected result:
----------------
The function should either return an error or, at least, handle this more gracefully.

Actual result:
--------------
A notice is generated :

Notice: Uninitialized string offset: 0 in D:\Projets\MaisonRRPlus\application\lib\Net\FTP.php on line 1891