PHP Classes

Notices from $ERR array keys

Recommend this page to a friend!

      GIF images into animated GIF with native PHP class  >  All threads  >  Notices from $ERR array keys  >  (Un) Subscribe thread alerts  
Subject:Notices from $ERR array keys
Summary:Upon GIFEncoder call, 4 notices about undefined constants appear
Messages:1
Author:Ivik Injerd
Date:2010-12-04 08:13:15
 

  1. Notices from $ERR array keys   Reply   Report abuse  
Picture of Ivik Injerd Ivik Injerd - 2010-12-04 08:13:16
Once GIFEncoder() is called (initializing the class), 4 notices are displayed, one for each key in the $ERR array (lines 38-41). Of course this is only a problem for those, including myself, who have set E_NOTICE errors to display.

The simple solution to this is to put the keys of the $ERR array in quotes. Once this is done, no notices appear.