php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61791 ext\sqlite3\tests\sqlite3_15_open_error.phpt fails
Submitted: 2012-04-20 20:11 UTC Modified: 2012-04-26 13:42 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: SQLite related
PHP Version: 5.3Git-2012-04-20 (Git) OS: windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ab@php.net
New email:
PHP Version: OS:

 

 [2012-04-20 20:11 UTC] ab@php.net
Description:
------------
Test diff:

001- exception 'Exception' with message 'Unable to open database: %s' in %ssqlite3_15_open_error.php:%d
002- Stack trace:
003- #0 %ssqlite3_15_open_error.php(%d): SQLite3->__construct('%s')
004- #1 {main}
002+
003+ Warning: unlink(C:\php-sdk\php53\vc9\x86\php-src\ext\sqlite3\tests/unreadable.db): Permission denied in C:\php-sdk\php53\vc9\x86\php-src\ext\sqlite3\tests\sqlite3_15_open_error.php on line 11

The reason for the test to fail is - chmod() doesn't work on windows.

Expected result:
----------------
test pass

Actual result:
--------------
test fail

Patches

sqlite_5.4.diff (last revision 2012-04-20 20:13 UTC by ab@php.net)
sqlite_5.3.diff (last revision 2012-04-20 20:12 UTC by ab@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-20 20:12 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: sqlite_5.3.diff
Revision:   1334952775
URL:        https://bugs.php.net/patch-display.php?bug=61791&patch=sqlite_5.3.diff&revision=1334952775
 [2012-04-20 20:13 UTC] ab@php.net
The following patch has been added/updated:

Patch Name: sqlite_5.4.diff
Revision:   1334952816
URL:        https://bugs.php.net/patch-display.php?bug=61791&patch=sqlite_5.4.diff&revision=1334952816
 [2012-04-26 13:19 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4daab0abecd5ee583c005d8e7b6affc08af8639d
Log: Fix bug #61791 ext\sqlite3\tests\sqlite3_15_open_error.phpt fails
 [2012-04-26 13:42 UTC] ab@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ab
 [2012-04-26 13:42 UTC] ab@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2014-10-07 23:26 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=4daab0abecd5ee583c005d8e7b6affc08af8639d
Log: Fix bug #61791 ext\sqlite3\tests\sqlite3_15_open_error.phpt fails
 [2014-10-07 23:37 UTC] stas@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=4daab0abecd5ee583c005d8e7b6affc08af8639d
Log: Fix bug #61791 ext\sqlite3\tests\sqlite3_15_open_error.phpt fails
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 16:01:27 2024 UTC