Bug #77986 [NEW]: Extra error
| From: | v-altruo at microsoft dot com | Date: | Tue, 07 May 2019 20:42:32 +0000 |
| Subject: | Bug #77986 [NEW]: Extra error | ||
| Groups: | php.bugs php.qa | ||
| Request: | Send a blank email to php-bugs+get-220756@lists.php.net to get a copy of this message | ||
From: v-altruo at microsoft dot com
Operating system: Windows
PHP version: 7.3.5
Package: Testing related
Bug Type: Bug
Bug description:Extra error
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 bug report at https://bugs.php.net/bug.php?id=77986&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77986&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77986&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77986&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77986&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77986&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77986&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77986&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77986&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77986&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77986&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77986&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77986&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77986&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77986&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77986&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77986&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77986&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77986&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77986&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77986&r=mysqlcfg