Bug #71305 [Fbk->Csd]: Crash when optional resource is omitted
| From: | ab@php.net | Date: | Wed, 13 Jan 2016 20:49:06 +0000 |
| Subject: | Bug #71305 [Fbk->Csd]: Crash when optional resource is omitted | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198632@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71305&edit=1
ID: 71305
Updated by: ab@php.net
Reported by: mikedeweese at hotmail dot com
Summary: Crash when optional resource is omitted
-Status: Feedback
+Status: Closed
Type: Bug
Package: InterBase related
Operating System: Windows 10 x64
PHP Version: 7.0.2
-Assigned To:
+Assigned To: ab
Block user comment: N
Private report: N
New Comment:
@mikedeweese thanks for staying on the matter. I would consider this one to be over. There are still
some issues there, and it's known. If you have simple repro cases for those, please file
another ticket.
Many thanks to Hui for the huge patch to ext/interbase.
Cheers.
Previous Comments:
------------------------------------------------------------------------
[2016-01-13 12:51:52] mikedeweese at hotmail dot com
Yes, I now have 3 small tests that all complete as expected.
I tested with the snapshot in the r2b4625d directory.
------------------------------------------------------------------------
[2016-01-12 14:18:02] ab@php.net
@mikedeweese thanks for checking. Here's a new build http://windows.php.net/downloads/snaps/php-7.0/r4e7cb05/
(or any later snapshot).
Thanks.
------------------------------------------------------------------------
[2016-01-11 21:37:14] mikedeweese at hotmail dot com
Ok, my second test does work if I connect to a DB that actually exists.
However, it still isn't 100%, as it crashes when I try to open a database that does not exist.
In PHP 5.6 it exits gracefully with these warnings:
PHP Warning: ibase_connect(): I/O error during "CreateFile (open)" operation for file
"TESTDB" Error while trying to open file The system cannot find the file specified. in
C:\work\php7_ibase_failure2.php on line 3
PHP Warning: ibase_query(): no Firebird/InterBase link resource supplied in
C:\work\php7_ibase_failure2.php on line 4
PHP Warning: ibase_fetch_object() expects parameter 1 to be resource, boolean given in
C:\work\php7_ibase_failure2.php on line 5
------------------------------------------------------------------------
[2016-01-11 21:24:23] mikedeweese at hotmail dot com
It is closer to working like it used to.
This now works
$db = ibase_connect("172.16.2.1:POEM_DEV", 'sysdba', 'masterkey');
$t = ibase_trans(); // This line crashes in the 7.0.2
$q = ibase_query($t, "SELECT FUSERID, FEMPNO FROM UTUSERS WHERE FUSERID =
'MJD'");
$r = ibase_fetch_object($q);
print_r($r);
but this still crashes
$db = ibase_connect("172.16.2.1:TESTDB", 'sysdba', 'masterkey');
$q = ibase_query("SELECT * FROM UTUSERS WHERE FUSERID = 'MJD'");
print "at end";
------------------------------------------------------------------------
[2016-01-11 15:51:02] ab@php.net
@mikedeweese please test the current development 7.0 branch. Several fixes was applied. Please fetch
this http://windows.php.net/downloads/snaps/php-7.0/rb188caf/
or any later snapshot.
Thanks.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=71305
--
Edit this bug report at https://bugs.php.net/bug.php?id=71305&edit=1