View Single Post
Old 04-04-2008, 11:24 PM   #9 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

Well then. I have two edumacational questions regarding your coding style there Wildhoney, but in attempting to edumacate myself prior to asking them I seem to have broken my test server.

That's not good.

All I was trying to do was turn error reporting on in PHP so that I could tell if it was generating warnings or other notices when I accessed a class method without the class being instantiated. From the PHP manual,

Declaring class members or methods as static makes them accessible without needing an instantiation of the class.

Now forgive me if I've misunderstood this, but it would seem to call a method (someClass::method()) according to this you would need it declared as static. However, in writing some quick test.php code (my favorite file, I think there's one in almost every directory of my document tree) to see how a child class interacts with the parent, and visa versa, I had written some code in there which accessed methods and constants from my test classes previous to the class being called into existence.

I'm assuming however that since none of them were declared static, this is probably producing warnings, as it does not halt execution. So I went to turn my error reporting on, and apache won't restart when I have it set to on, but it will if I set it to off. Wtf. *kicks it*

Anywho, while I try to figure that out, I was also curious why you suppressed errors from calling session_start(). Does this sometimes have unexpected behavior?
-m
delayedinsanity is offline  
Reply With Quote