php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77987 File missing/not created
Submitted: 2019-05-07 21:17 UTC Modified: 2019-05-07 22:33 UTC
From: v-altruo at microsoft dot com Assigned: cmb (profile)
Status: Closed Package: Testing related
PHP Version: 7.3.5 OS: Windows
Private report: No CVE-ID: None
 [2019-05-07 21:17 UTC] v-altruo at microsoft dot com
Description:
------------
Fails across all builds. Used default settings for connecting to MySQL. 

MySQL version: 5.7.25

Test file location: ext\pdo_mysql\tests\pdo_mysql___construct_uri-win32.phpt

Expected result:
----------------
Warning: PDO::__construct(file:%spdomuri.tst): failed to open stream: Invalid argument in %s on line %d
[002] URI=uri:file:%spdomuri.tst, DSN=mysql%sdbname=%s, File=%spdomuri.tst (%d bytes, 'mysql%sdbname=%s'), invalid data source URI

Warning: PDO::__construct(file:%spdomuri.tst): failed to open stream: Invalid argument in %s on line %d
[003] URI=uri:file:%spdomuri.tst, DSN=mysql%sdbname=%s, File=%spdomuri.tst (%d bytes, 'mysql%sdbname=letshopeinvalid%s'), chr(0) test, invalid data source URI
done!

Actual result:
--------------
Warning: PDO::__construct(file:..\pdomuri.tst): failed to open stream: No such file or directory in ..\pdo_mysql___construct_uri-win32.php on line 21
[002] URI=uri:file:..\pdomuri.tst, DSN=mysql:host=localhost;dbname=test, File=..\pdomuri.tst (32 bytes, 'mysql:host=localhost;dbname=test'), invalid data source URI

Warning: PDO::__construct(file:..\pdomuri.tst): failed to open stream: No such file or directory in ..\pdo_mysql___construct_uri-win32.php on line 38
[003] URI=uri:file:..\pdomuri.tst, DSN=mysql:host=localhost;dbname=test, File=..\pdomuri.tst (62 bytes, 'mysql:dbname=letshopeinvalid; mysql:host=localhost;dbname=test'), chr(0) test, invalid data source URI
done!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-05-07 22:33 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2019-05-07 22:33 UTC] cmb@php.net
Thanks for reporting!  This issue has recently been addressed[1];
the fixed test case will be shipped with the next PHP releases.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=9bf11045db09d87020c66c21e0a4df30f63c415d>
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Apr 21 21:01:24 2021 UTC