Jump to content


Photo

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


  • Please log in to reply
3 replies to this topic

#1 drkstr

drkstr
  • Members
  • PipPipPip
  • Advanced Member
  • 66 posts
  • LocationSeattle, WA - USA

Posted 23 August 2006 - 11:21 PM

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!

#2 btherl

btherl
  • Staff Alumni
  • Advanced Member
  • 3,893 posts
  • LocationAustralia

Posted 07 September 2006 - 06:50 AM

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

#3 drkstr

drkstr
  • Members
  • PipPipPip
  • Advanced Member
  • 66 posts
  • LocationSeattle, WA - USA

Posted 07 September 2006 - 06:53 PM

Great, thanks!

This is exactly what I was looking for.

Thanks for the advice!
...drkstr

#4 gluck

gluck
  • Members
  • PipPipPip
  • Advanced Member
  • 216 posts

Posted 02 November 2006 - 07:07 PM

check this

http://www.sitepoint...tandard-library
http://www.sitepoint...ebserver-near/2

I'm back baby!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users