[drupal-devel] [bug] Remove PHP5 warnings about unassigned variables and functions being used

fgm drupal-devel at drupal.org
Fri Sep 9 20:07:20 UTC 2005


Issue status update for 
http://drupal.org/node/30800
Post a follow up: 
http://drupal.org/project/comments/add/30800

 Project:      Drupal
 Version:      4.6.3
 Component:    base system
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  fgm
 Updated by:   fgm
 Status:       patch (ready to be committed)
 Attachment:   http://drupal.org/files/issues/missing_isset.zip (2.38 KB)

This is a set of similar patches to several files: bootstrap.inc,
common.inc, pager.inc, devel.module, filter.module, node.module,
user.module, watchdog.module


They are all there to maintain identical functionality but remove
warnings caused by code like:


$somevar = $somearray['somekey'] ;  


where the existing code does not check whether $somearray contains an
entry for 'somekey', or even whether $somearray actually exists.


Another change in this patch conditionally restores the missing
timer_read function in devel.module, by first checking whether or not
it is already defined.


Packaged as two patches, one for the includes directory, the other for
the modules directory




fgm




More information about the drupal-devel mailing list