darya / framework

PHP Web Application Framework
http://darya.io/
MIT License
2 stars 1 forks source link

MySQL connection breaks when mysqlnd is missing #29

Closed hexus closed 9 years ago

hexus commented 9 years ago

Darya\Database\Connection\MySql can't use mysqli_stmt::get_result without the mysqlnd extension installed.

Fatal error: Call to undefined method mysqli_stmt::get_result() in .../darya/framework/src/Darya/Database/Connection/MySql.php on line 121

Improve this situation by complaining as soon as the connection is instantiated if this method doesn't exist, or provide a runtime workaround using the following methods:

  1. mysql_stmt::bind_result
  2. mysql_stmt::fetch

http://stackoverflow.com/questions/18753262/example-of-how-to-use-bind-result-vs-get-result http://stackoverflow.com/questions/8321096/call-to-undefined-method-mysqli-stmtget-result

hexus commented 9 years ago

Should be fixed but I haven't tested yet.

hexus commented 9 years ago

All done.

hexus commented 8 years ago

Truly, finally fixed by commit 5c43e00d.