[php-src] PR #18728: Mysqli last query error

From: Date: Sun, 01 Jun 2025 13:13:50 +0000
Subject: [php-src] PR #18728: Mysqli last query error
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-31913@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/18728 Author: domenico-pinto-www This pull request introduces a new property last_query_error in the mysqli class. The property stores the SQL query that caused the most recent error, providing developers with easier debugging and error tracking. How to test: - Create a simple PHP script to connect to the database and intentionally execute an invalid query (e.g., SELECT * FROM non_existing_table). - Catch the exception and retrieve the $mysqli->last_query_error property. - Verify that it contains the failed SQL query.

« previous php.git-pulls (#31913) next »