Skip to content

Instantly share code, notes, and snippets.

@firefoxrebo
Created July 24, 2017 19:31
Show Gist options
  • Select an option

  • Save firefoxrebo/f8d85dab2c9dd0a5a5582f49daf9781f to your computer and use it in GitHub Desktop.

Select an option

Save firefoxrebo/f8d85dab2c9dd0a5a5582f49daf9781f to your computer and use it in GitHub Desktop.

Revisions

  1. firefoxrebo created this gist Jul 24, 2017.
    14 changes: 14 additions & 0 deletions vld
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    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.