[wp-trac] [WordPress Trac] #21870: @ error control operator hides fatal error on mysql_fetch_object

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 11 14:59:36 UTC 2012


#21870: @ error control operator hides fatal error on mysql_fetch_object
--------------------------+-----------------------------
 Reporter:  ericlewis     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  1.5
 Severity:  normal        |   Keywords:  2nd-opinion
--------------------------+-----------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21870>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list