[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-doc
Subject:    [PEAR-DOC] [PEAR-BUG] Bug #17582 [NEW]: PEAR2\Pyrus\Registry\Sqlite3 infinitive loop
From:       "warnar at dmmw dot nl"<pear-doc () lists ! php ! net>
Date:       2010-07-13 10:40:01
Message-ID: bug-17582 () pear ! php ! net
[Download RAW message or body]

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
-- 


-- 
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic