Bug 157305

Summary: php5-pdo_sqlite requires php5-sqlite
Product: [openSUSE] SUSE Linux 10.1 Reporter: Cristian Rodríguez <crrodriguez>
Component: NetworkAssignee: Petr Ostadal <postadal>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Beta 6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: tst case
spec file patch

Description Cristian Rodríguez 2006-03-10 20:47:40 UTC
Hi:

IIRC; if the user installs the PHP5 base package, and then select php-pdo_sqlite, user will get as a depenendecy php5-pdo package.
however, will end up with an incomplete feature set, he will not be able to use sqlite2 driver, since it's only available when php5-sqlite is loaded.

patch and test case attached.
Comment 1 Cristian Rodríguez 2006-03-10 20:51:17 UTC
Created attachment 72369 [details]
tst case

this test will raise an Exception with the follwing message :
Connection failed: could not find driver

if php4-sqlite is not loaded.

the expected result is : NO Exception
Comment 2 Cristian Rodríguez 2006-03-10 20:54:47 UTC
Created attachment 72372 [details]
spec file patch

this patch also solve some inconsistent configure options I had found.
Comment 3 Cristian Rodríguez 2006-03-10 20:59:58 UTC
ps: I used the src.rpm available from factory to create the spec file patch.
Comment 4 Petr Ostadal 2006-03-13 11:40:17 UTC
thnx fixed