Nov 27
I'm in the process of creating a server install setup process for our Macintosh OSX G5 Server and originally had PHP v5.1.6 in the install steps. I had tested it with the live site data and all worked fine. Because PHP v5.2.0 is supposed to have speed and efficiency increases, as well as a hook to allow for the ability to keep track of upload progress (i.e.: visually follow an upload with a moving graph using PHP and JavaScript without any other odd language bridges or hacks), I figured I might as well just switch the versions in the documentation.

Well, I just tried it out today and finalized all of the virtualhost parameters and re-uploaded the live data. What nice thing do I see on the screen to greet me? ....nothing, it's a production server so errors are not displayed. Unfortunately for me I forgot to assign an error log file location...oops. Apache's error log was not definitive enough. Time to upgrade my local test machine's version of PHP as well.

WARNING: Redeclaration of <insert_func-name_here>() in ...

Okay, ummm...how is it being redeclared? It worked fine on v5.1.6...

With a little more research, I found the problem to be that MY FUNCTION NAME IS NOW A RESERVED WORD -- AN INTERNAL FUNCTION NAME. There's a new function category called Filter that also includes the aptly named function "filter_input()". Yeah, I can't imagine ANYONE who's ever written procedural code to have a function like that in there... So anyway, be warned. I had to add a prefix to my function and then edit any and all instances of it within my code.

...just yet another reason for me as to why to move completely over to OOP and forget about procedural PHP programming.

Posted by Brendon Kozlowski

0 Trackbacks

  1. No Trackbacks

0 Comments

Display comments as(Linear | Threaded)
  1. No comments

Add Comment


Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

BBCode format allowed