[isf-wifidog] PHP syntax question

Proulx François fproulx at lecameleon.net
Mer 25 Mai 00:28:24 EDT 2005


Are you sure you're using PHP 5.0.4 ? PHP complaining about calling  
methods in a  static contexts sounds like PHP4 to me...


On 24-May-2005, at 23:48 , Wireless Guy wrote:

> Hi,
>
> I'm kind of new to PHP and wanted ot understand a bit more about  
> the errors that I'm seeing.
> I don't know if I have some kind of issue with my own system or if  
> there are bugs in the CVS that current users just don't see because  
> they have systems that are already operational.
>
> One I have everything installed I'm getting some errors in the  
> classes/user.php file.
>
>
> This function here has two underscores. Is that correct? (this is  
> in the current CVS as well).
> Changing it to one _ gets me through that page, but I still have  
> other files to figure out.
>
>         /**
> @param $object_id The id of the user */
>         function
> __construct($object_id)
>
> If I leave the __ (two underscores) alone, the system complains  
> about a line within the function.
> Line 250
> Fatal error: Non-static method Locale::_() cannot be called  
> statically in /var/www/html/wifidog-auth/wifidog/classes/User.php
>
>  throw new Exception(_("User id:
> ").$object_id_str._(" could not be found in the
> database"));
>
> I'm trying to understand where the actual issue lies. Perhaps I  
> have something wrong with my httpd.conf or php.ini files.
>
> Any suggestions would be greatly appreciated.
> Thanks.
> _______________________________________________
> WiFiDog mailing list
> WiFiDog at listes.ilesansfil.org
> http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog

-------------- section suivante --------------
Une pièce jointe HTML a été enlevée...
URL: http://listes.philippeapril.com/pipermail/wifidog/attachments/20050525/1c2967bc/attachment-0001.htm


Plus d'informations sur la liste de diffusion WiFiDog