@ error control operator hides fatal error on mysql_fetch_object
|Reported by:||ericlewis||Owned by:||pento|
I ran a get_posts() query that took me a while to track down to the @ error control operator on the mysql_fetch_object call (see wp-db.php:1219 in trunk), therefore PHP was silently die'ing on me because of a memory limit error.
I'm curious as to what use cases there are for the error control operator to be used here. In my case, I want to see these errors and fix my code accordingly, or tailor my query to the memory constraints, or rethink my data relations in the database.
Change History (21)
- Keywords has-patch added; needs-patch removed
- Milestone changed from Awaiting Review to 3.5
comment:10 @nacin — 3 years ago
- Keywords 3.6-early added
- Milestone changed from 3.5 to Future Release
comment:12 in reply to: ↑ 11 @pento — 17 months ago
- Keywords needs-refresh added; has-patch 3.6-early removed