Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BB2Nuke
Author Message
Misha
Worker
Worker


Joined: Jul 30, 2006
Posts: 203
Location: McLean, VA

PostPosted: Thu Feb 26, 2009 2:33 pm Reply with quote

Just checked the server logs for a different reason, and stumbled across this warning:

[26-Feb-2009 12:06:54] PHP Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /home/XXXXXXX/public_html/modules/Forums/common.php on line 78

Repeats every few seconds with Argument # cycling 1 through 7.

Would appreciate if anybody could shed any light on it Smile

Still running RN 2.02.02 and BBtoNuke 2.0.21
Yes, I know, I am behind Smile

Thanks, Misha

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Thu Feb 26, 2009 2:46 pm Reply with quote

Using PHP v5? From Only registered users can see links on this board! Get registered or login!

Warning

The behavior of array_merge() was modified in PHP 5.
Unlike PHP 4, array_merge() now only accepts parameters of type
Only registered users can see links on this board! Get registered or login!.
However, you can use typecasting to merge other types.
 
View user's profile Send private message
Misha
PostPosted: Thu Feb 26, 2009 3:22 pm Reply with quote

Idea Aha! Thanks Gaylen, that makes sense, my host switched to PHP 5 a while ago.

Ok, so you are saying if I insert (array) before every argument this should solve the problem for now, right?
 
Raven
PostPosted: Thu Feb 26, 2009 3:32 pm Reply with quote

Casting has worked for me so it should for you Smile. Just remember that there is a certain amount of overhead involved with each cast but you probably won't notice it.
 
Misha
PostPosted: Thu Feb 26, 2009 3:50 pm Reply with quote

Yep, it did the trick. I don't think the overhead is greater than warning handling though Smile

Thanks Gaylen, ttyl Smile
 
Raven
PostPosted: Thu Feb 26, 2009 4:43 pm Reply with quote

Misha wrote:
Yep, it did the trick. I don't think the overhead is greater than warning handling though Smile

Thanks Gaylen, ttyl Smile


Very true. Casting would be less overhead than throwing a warning Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BB2Nuke

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©