[isf-wifidog] PHP syntax question

Wireless Guy wirelessguy at optonline.net
Mer 25 Mai 20:25:17 EDT 2005


It is actually PHP 5.0.3

Do you think there is a difference b/w 5.0.3 and 5.0.4 ?
I can update to this later version, but I fear that it might not make a 
difference.

Is that double underscore __  correct ?

Thanks.


At 12:28 AM 05/25/2005, you wrote:
>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
>><mailto:WiFiDog at listes.ilesansfil.org>WiFiDog at listes.ilesansfil.org
>>http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog
>
>_______________________________________________
>WiFiDog mailing list
>WiFiDog at listes.ilesansfil.org
>http://listes.ilesansfil.org/cgi-bin/mailman/listinfo/wifidog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listes.philippeapril.com/pipermail/wifidog/attachments/20050525/c0ca52f7/attachment.htm


Plus d'informations sur la liste de diffusion WiFiDog