Jump to content

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


drkstr

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!
Link to comment
Share on other sites

  • 2 weeks later...
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
Link to comment
Share on other sites

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.