Bug #77986 [Opn->Csd]: Extra error
| From: | cmb@php.net | Date: | Tue, 07 May 2019 22:01:45 +0000 |
| Subject: | Bug #77986 [Opn->Csd]: Extra error | ||
| References: | 1 | Groups: | php.bugs php.qa |
| Request: | Send a blank email to php-bugs+get-220759@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77986&edit=1
ID: 77986
Updated by: cmb@php.net
Reported by: v-altruo at microsoft dot com
Summary: Extra error
-Status: Open
+Status: Closed
Type: Bug
Package: Testing related
Operating System: Windows
PHP Version: 7.3.5
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Thanks for reporting! This issue has recently been addressed[1];
the fixed test case will be shipped with the next PHP releases.
[1] <https://github.com/php/php-src/commit/fc9cdb723bcd02dfdb83962ca1eda57ec4c10296>
Previous Comments:
------------------------------------------------------------------------
[2019-05-07 20:42:32] v-altruo at microsoft dot com
Description:
------------
Fails across all builds. There's just 1 extra line about expecting 0 (The [020] line).
MySQL version: 5.7.25
Test file location: ext\pdo_mysql\tests\pdo_mysql_exec.phpt
Expected result:
----------------
Warning: PDO::exec(): SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in
your SQL syntax; check the manual that corresponds to your %s server version for the right syntax to
use near 'THIS IS NOT VALID SQL, I HOPE' at line 1 in %s on line %d
[016] [42000] 42000 1064 You have an error in your SQL syntax; check the manual that corresponds to
your %s server version for the right syntax to use near 'THIS IS NOT VALID SQL, I HOPE' at
line %d
[035] With emulated PS it works but makes no sense given that exec() returns sort of affected
rows...
done!
Actual result:
--------------
Warning: PDO::exec(): SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in
your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax
to use near 'THIS IS NOT VALID SQL, I HOPE' at line 1 in ... on line 6
[016] [42000] 42000 1064 You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'THIS IS NOT VALID SQL, I HOPE'
at line 1
[020] Expecting '0'/integer got '1'/integer when running 'CALL
p(@version)', [00000] 00000
[035] With emulated PS it works but makes no sense given that exec() returns sort of affected
rows...
done!
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77986&edit=1