php opcodes
Moderator: General Moderators
php opcodes
Can someone give me some pretty specific instructions on how to view php opcodes for a page request? I'm not experienced with php internals.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Re: php opcodes
Advanced PHP Programming by George Schlossnagle provides a pretty tutorial-ish overview on how to see opcodes. I believe the tool he used was op_dumper, which is developed here. You can also use Derick Rethan's tool.
Re: php opcodes
Awesome I'll give those a shot.
Re: php opcodes
hmmm
I followed the instructions:

I followed the instructions:
I su'd as root to install it, but when I execute a script, only the html is displayed.t's not hard to use this extension, but it might not work with all PHP versions. Here are the instructions to get it to work:
1. Unpack the tarball: tar -xzf vld-0.8.0.tgz.
2. cd into the newly created directory.
3. Create the configure script: phpize
4. Now run "./configure" followed by "make install".
That's it, if you now run PHP from the command line and add the -dvld.active=1 parameter VLD will spit out the opcodes:
php -dvld.active=1 program.php
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Re: php opcodes
Check the docs. Maybe it's meant to be run from the web-browser. I can't help you here; I've never used the script before 
Re: php opcodes
Ok thanks. I don't think that will work because it's selective about what opcodes get printed out. I really need a way to do a full opcode dump like yesterday. Anyone got anything?