Pierre Joye ha scritto: > Having them part of the PHP errors is counter intuitive and add extra > work for little gain. Mysql being the most cleaner way to do it at > this stage as it does not interfer with php code at all.
Yes. That's exactly why I added a new method, although driver specific. > Could we make it independent from php's errors (be notices or > warnings)? For example to add a PDO statement method to fetch these > messages after having executed or prepared a query, getMessages for > example. The PDO::exec(), method doesn't return a PDOStatement. With exec being the most common way to execute DDL or DML queries, the ones that are more likely to return a notice or warning. Cheers -- Matteo Beccati -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php