Skip to main content

Posts

Showing posts with the label mysqli

PHP weird Seg-faults on mysqli_stmt_bind_result

When migrating a PHP script from PHP 5.2 to PHP 5.3, I've stumbled to the following problem: The general purpose of the script is data mining. I have a procedure inside that adds data to the MySQL server. Since it is really repetitive, I've rewritten it (a while ago) to use MySQLi, in particular prepared statements, since there are a total of 3 possible queries to perform. Anyway, now, on the PHP 5.3 server, the script is crashing on the following line:

Undefined Constant MYSQLI_ASYNC - Non blocking queries in PHP

I understand that mysqlnd allows non blocking queries. However, I'm trying: // goes without saying this code works correctly when second parameter is ommitted $link->query($myQuery, MYSQLI_ASYNC); The error I get is:"Notice: use of undefined constant MYSQLI_ASYNC assumed 'MYSQLI_ASYNC' " and ensuing errors. PHP Version: 5.3.5-1 ubuntu7.4 I don't know if I actually have mysqlnd installed/activated, and I can't find a good resource on how to tell if it is. Help?