Jump to content

Archived

This topic is now archived and is closed to further replies.

drkstr

can anyone get me started on adding in better oop support?

Recommended Posts

Hello,

My earleir question got moved to PHP help since I asked it in the completly wrong way. Since tinkering has always been my favorite past time, I would like to give it another shot if that's ok.

I have done a lot of perl scripting in the past since all my computers at home are running Slackware Linux. I tumbled across PHP recently and was excited I could replace perl with a much more advanced language (which also supports OOP woot!).

However, I have been spoiled by C/C++ and I miss a lot of the advanced OOP features it supports. PHP is kind of restrictave in these regards (such as $this re-pointing, copying objects through the constructor, multiple constructors, etc.)

I would like to start playing around with the core, to see what I could cook up, but was a little unsure where to start reading. I am not new to "hacking" code, but I am new to PHP hacking.

Can anyone get me pointed in the right direction? Which portion of the source controls OOP functionality? Are there any technical specifications that document the source layout? Would anyone care on sharing what they did when they first started Hacking PHP?

Thanks for your time!

Share this post


Link to post
Share on other sites
I think the mailing lists would be the best place to start, to get an idea of what people have been discussing.  Looking at the code only can often leave you behind the times.

In the source tree in the Zend directory there are a few files, OBJECT2_HOWTO, and zend_object*.c

Share this post


Link to post
Share on other sites
Great, thanks!

This is exactly what I was looking for.

Thanks for the advice!
...drkstr

Share this post


Link to post
Share on other sites
check this

http://www.sitepoint.com/article/php5-standard-library
http://www.sitepoint.com/article/coming-soon-webserver-near/2

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.