Hhvm: Missing PDO::MYSQL_ATTR_MULTI_STATEMENTS constant

Created on 21 Oct 2016  路  6Comments  路  Source: facebook/hhvm

HipHop VM 3.16.0-dev (rel)

step to reproduce: print_r(PDO::MYSQL_ATTR_MULTI_STATEMENTS);

expected: 1013

actual: \nFatal error: Couldn't find constant PDO::MYSQL_ATTR_MULTI_STATEMENTS in /.../Mysql.php on line 342

This error prevents Magento 2.1.2 from completing the installation.

php5 incompatibility probably easy

Most helpful comment

This should be fairly trivial to implement, https://github.com/php/php-src/blob/6053987bc27e8dede37f437193a5cad448f99bce/ext/pdo_mysql/mysql_driver.c#L568

It's just a flag being passed to MySQL itself.

All 6 comments

This should be fairly trivial to implement, https://github.com/php/php-src/blob/6053987bc27e8dede37f437193a5cad448f99bce/ext/pdo_mysql/mysql_driver.c#L568

It's just a flag being passed to MySQL itself.

Same error on HHVM 3.18

well @aftabnaveed ... it hasn't been implemented yet.

I'm getting the same error.

version: HHVM 3.18

I made a PR to fix this issue https://github.com/facebook/hhvm/pull/7737

This was fixed in https://github.com/facebook/hhvm/commit/b07bca0f325155a435f05329b2660711557af065

https://3v4l.org/6VS1h (not sure why Zend versions don't have that constant defined on 3v4l.org)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fredemmott picture fredemmott  路  3Comments

octmoraru picture octmoraru  路  5Comments

ahmadazimi picture ahmadazimi  路  6Comments

ZhijieWang picture ZhijieWang  路  6Comments

doublecompile picture doublecompile  路  3Comments