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

m3avrck drupal-devel at drupal.org
Fri Sep 9 21:11:27 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
+Version:      cvs
 Component:    base system
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  fgm
 Updated by:   m3avrck
-Status:       patch (ready to be committed)
+Status:       patch (code needs work)

These patches don't apply to HEAD and problem exists in HEAD as well.


A single patch should be made that fixes all of these in HEAD. I'll see
what I can do, this is a good start.




m3avrck



Previous comments:
------------------------------------------------------------------------

Fri, 09 Sep 2005 20:07:16 +0000 : fgm

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




------------------------------------------------------------------------

Fri, 09 Sep 2005 20:15:23 +0000 : fgm

Attachment: http://drupal.org/files/issues/includes_0.patch (2.01 KB)

Split in two patches to avoid the .zip 


First here contains the patch to includes




------------------------------------------------------------------------

Fri, 09 Sep 2005 20:15:43 +0000 : fgm

Attachment: http://drupal.org/files/issues/modules_3.patch (4.04 KB)

Second here contains patch for modules







More information about the drupal-devel mailing list