[PEAR-BUG] Bug #17582 [NEW]: PEAR2\Pyrus\Registry\Sqlite3 infinitive loop

[email protected] ("warnar at dmmw dot nl") Tue, 13 Jul 2010 11:31:35 +0000 (GMT)
Newsgroups php.pear.doc
Message-ID <[email protected]>
From:             boekkooi
Operating system: Windows 7 x64
Package version:  
PHP version:      5.3.1
Package:          Documentation
Bug Type:         Bug
Bug description:  PEAR2\Pyrus\Registry\Sqlite3 infinitive loop

Description:
------------
Create a Sqlite3 with a unwriteable/none existing folder.

The problem can be fix by replacing line 76 with:
$file = dirname($file) === $file? false : dirname($file);


Test script:
---------------
$repo = new \PEAR2\Pyrus\Registry\Sqlite3('C:\LLALALALALALALALALA');

Expected result:
----------------
Exception: 'Cannot create SQLite3 registry, registry is read-only'

Actual result:
--------------
none (it keeps looping)

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