Bug #17584 [NEW]: PEAR2\Pyrus\ChannelRegistry\Sqlite3 infinitive loop
| From: | warnar at dmmw dot nl | Date: | Tue, 13 Jul 2010 12:05:07 +0000 |
| Subject: | Bug #17584 [NEW]: PEAR2\Pyrus\ChannelRegistry\Sqlite3 infinitive loop | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-11948@lists.php.net to get a copy of this message | ||
From: boekkooi
Operating system: Windows 7 x64
Package version:
PHP version: 5.3.1
Package: Documentation
Bug Type: Bug
Bug description: PEAR2\Pyrus\ChannelRegistry\Sqlite3 infinitive loop
Description:
------------
Create a Sqlite3 ChannelRegistry with a unwriteable/none existing folder.
The problem can be fix by replacing line 59 with:
$file = dirname($file) === $file? false : dirname($file);
Test script:
---------------
$r = new PEAR2\Pyrus\ChannelRegistry\Sqlite3('C:\LLALALALALALALALALA');
Expected result:
----------------
Exception: 'Cannot create SQLite3 channel registry, registry is read-only'
Actual result:
--------------
none (it keeps looping)
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=17584&edit=1
--