PHP Classes

PHP Warnings

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  How to Show Google Ma...  >  All threads  >  PHP Warnings  >  (Un) Subscribe thread alerts  
Subject:PHP Warnings
Summary:PHP 5 Warhings
Messages:3
Author:Moisey Oysgelt
Date:2009-01-29 11:49:04
Update:2009-01-29 23:22:43
 

  1. PHP Warnings   Reply   Report abuse  
Picture of Moisey Oysgelt Moisey Oysgelt - 2009-01-29 11:49:04
I have used PHP plagin in Eclipse and found that forms.php has warnings
I'm not sure how serious are they but my philosophy id warning in a future error.

Do you think those worming can be fixed in PHP 5

___________________________________________________
Description Resource Path Location Type
The local variable $condition may not have been initialized forms.php vita/classes line 1720 PHP Problem
The local variable $condition may not have been initialized forms.php vita/classes line 2837 PHP Problem
The local variable $conditions may not have been initialized forms.php vita/classes line 2666 PHP Problem
The local variable $file_values may not have been initialized forms.php vita/classes line 3278 PHP Problem
The local variable $javascript may not have been initialized forms.php vita/classes line 437 PHP Problem
The local variable $javascript may not have been initialized forms.php vita/classes line 1743 PHP Problem
The local variable $javascript may not have been initialized forms.php vita/classes line 1762 PHP Problem
The local variable $javascript may not have been initialized forms.php vita/classes line 2837 PHP Problem
The local variable $property may not have been initialized forms.php vita/classes line 3787 PHP Problem
The local variable $value may not have been initialized forms.php vita/classes line 2877 PHP Problem
--------------------------------------------------------------------

  2. Re: PHP Warnings   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-01-29 18:01:05 - In reply to message 1 from Moisey Oysgelt
Those warnings are undue because they are about variables passed by reference to functions that are going to set those variables. So the variables do not need to be set before in the calling function.

You are probably getting these warnings because you have E_STRICT option enabled, as it alarms of things that are never a problem but they confuse developers.

  3. Re: PHP Warnings   Reply   Report abuse  
Picture of Moisey Oysgelt Moisey Oysgelt - 2009-01-29 23:22:43 - In reply to message 2 from Manuel Lemos
You are right. I usually use most strict options