nusphere "strict standards"

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
szita1
Forum Newbie
Posts: 10
Joined: Mon Apr 13, 2009 10:03 am

nusphere "strict standards"

Post by szita1 »

hi
I started using NuSphere but when the code runs, I keep getting messages "Strict Standards: blabla...".
What should I set to get rid of the messages?
Thanks
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: nusphere "strict standards"

Post by requinix »

Fix the problems?

What is PHP complaining about?
szita1
Forum Newbie
Posts: 10
Joined: Mon Apr 13, 2009 10:03 am

Re: nusphere "strict standards"

Post by szita1 »

like these(and 50 more lines):

Strict Standards: Assigning the return value of new by reference is deprecated in D:\wamp\www\npa_szemle\phpfn6.php on line 1466

Strict Standards: Implicit cloning object of class 'cAdvancedSearch' because of 'zend.ze1_compatibility_mode' in D:\wamp\www\npa_szemle\phpfn6.php on line 486

Strict Standards: Implicit cloning object of class 'cField' because of 'zend.ze1_compatibility_mode' in D:\wamp\www\npa_szemle\Szerzo2DCikkinfo.php on line 34

Strict Standards: Implicit cloning object of class 'cAdvancedSearch' because of 'zend.ze1_compatibility_mode' in D:\wamp\www\npa_szemle\phpfn6.php on line 486

Strict Standards: Implicit cloning object of class 'cField' because of 'zend.ze1_compatibility_mode' in D:\wamp\www\npa_szemle\Szerzo2DCikkinfo.php on line 36
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: nusphere "strict standards"

Post by requinix »

Since it's probably nuSphere's fault you're stuck with disabling those kinds of error messages.

Open up your php.ini, find the error_reporting directive, and set it to exclude E_STRICT.

Code: Select all

# was error_reporting = E_ALL | E_STRICT
error_reporting = E_ALL
szita1
Forum Newbie
Posts: 10
Joined: Mon Apr 13, 2009 10:03 am

Re: nusphere "strict standards"

Post by szita1 »

Thanks for help.
I changed php.ini as you suggested but it didnt help.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: nusphere "strict standards"

Post by requinix »

You did restart the server, right?

It could be that something, somewhere is calling

Code: Select all

error_reporting(E_ALL | E_STRICT)
Try getting rid of those.
User avatar
greyhoundcode
Forum Regular
Posts: 613
Joined: Mon Feb 11, 2008 4:22 am

Re: nusphere "strict standards"

Post by greyhoundcode »

Remember that PhpEd has its own micro-server - although by the looks of it the project files are saved under wamp/www it is possible (if you haven't started Wamp up, or depending on how you configured PhpEd) that the micro-server's php.ini also needs to be updated in line with tasairas's post.
Post Reply