Doc #74397 [NEW]: Filename be now also be empty string for in-memory db
| From: | aarjan at hotmail dot com | Date: | Sun, 09 Apr 2017 15:22:06 +0000 |
| Subject: | Doc #74397 [NEW]: Filename be now also be empty string for in-memory db | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-14600@lists.php.net to get a copy of this message | ||
From: aarjan at hotmail dot com
Operating system: Windows
PHP version: 7.0.17
Package: SQLite related
Bug Type: Documentation Problem
Bug description:Filename be now also be empty string for in-memory db
Description:
------------
---
From manual page: http://www.php.net/sqlite3.construct
---
https://github.com/php/php-src/commit/cc125f277b50e0f90fc8033fe7f47d2446389a15
According to this commit, the filename in the constructor may also be an
empty string since v7.0.10. This will result in a in-memory database. In
previous versions of PHP7 (I tested this with v7.0.2) this would have
resulted in a exception.
The documentation is not mentioning this feature.
Test script:
---------------
The unit test below works in v7.0.2, but fails in v7.0.17
class SQLiteConstructorTest extends PHPUnit_Framework_TestCase
{
/**
* @expectedException Exception
*/
public function testDefectDatabaseFile()
{
$database_file = '';
$sqlitedb = new SQLite3($database_file);
}
}
--
Edit bug report at https://bugs.php.net/bug.php?id=74397&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74397&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74397&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74397&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74397&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74397&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74397&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74397&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74397&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74397&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74397&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74397&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74397&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74397&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74397&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74397&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74397&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74397&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74397&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74397&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74397&r=mysqlcfg