Skip to content

Instantly share code, notes, and snippets.

@firefoxrebo
Created July 24, 2017 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firefoxrebo/f8d85dab2c9dd0a5a5582f49daf9781f to your computer and use it in GitHub Desktop.
Save firefoxrebo/f8d85dab2c9dd0a5a5582f49daf9781f to your computer and use it in GitHub Desktop.
VLD installation
The extension is not finished (and probably will never be finished). If you have questions, feel free to send me an e-mail.
You can get the source from Github:
git clone https://github.com/derickr/vld.git vld
Here are the instructions to get it to work:
cd into the newly checked-out directory.
Create the configure script: phpize
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
There is also a setting vld.execute to disable execution of code, and vld.verbosity to control how much output VLD generates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment