And 2 more reported by some volunteers:

Warning: Creating default object from empty value in
/home/boincadm/projects/NumberFields/html/inc/prefs.inc on line 420

Warning: Creating default object from empty value in
/home/boincadm/projects/NumberFields/html/project/project_specific_prefs.inc
on line 203

--Eric

-----Original Message-----
From: boinc_dev [mailto:[email protected]] On Behalf Of
Christian Beer
Sent: Saturday, May 04, 2013 2:30 AM
To: David Anderson
Cc: [email protected]
Subject: Re: [boinc_dev] php warning messages

There are some more in update_versions:

PHP Warning:  Creating default object from empty value in
/home/scientist/projects/test4vm/bin/update_versions on line 375
PHP Warning:  Creating default object from empty value in
/home/scientist/projects/test4vm/bin/update_versions on line 389

Regards
Christian

Am 04.05.2013 07:15, schrieb David Anderson:
> Starting with PHP version 5.5, the usage
>
> $p = null;
> $p->foo = "bar";
>
> gets a warning; you need to say
>
> $p = new StdClass;
> $p->foo = "bar";
>
> I fixed a few of these.
> Unfortunately I don't have a PHP 5.5 system to test on right now.
> Please check out the latest code
> and let me know if you see more of these.
>
> -- David
>
> On 03-May-2013 6:57 PM, Eric Driver wrote:
>> Hi all,
>>
>>
>>
>> I recently upgraded the NumberFields project to the latest branch
>> (boinc-v2).  I am now getting a bunch of warnings on the admin pages
>> like
>> the following:
>>
>>
>>
>> "Warning: Creating default object from empty value in
>> /home/boincadm/projects/NumberFields/html/inc/db_ops.inc on line 520"
>>
>>
>>
>> I can turn off these warnings in the php code by using
>> error_reporting(), in
>> which case the site acts just like it used to.  But are these warnings
>> telling me there is a problem somewhere in the php code, and if so does
>> anyone know how to fix this?
>>
>>
>>
>> Thanks in advance!
>>
>> Eric
>>
>>
>>
>> _______________________________________________
>> boinc_dev mailing list
>> [email protected]
>> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
>> To unsubscribe, visit the above URL and
>> (near bottom of page) enter your email address.
>>
> _______________________________________________
> boinc_dev mailing list
> [email protected]
> http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
> To unsubscribe, visit the above URL and
> (near bottom of page) enter your email address.

_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.


_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to