2017 © Pedro Peláez
 

library runtime

PHP-library for disable and override standard functions in real-time

image

dm/runtime

PHP-library for disable and override standard functions in real-time

  • Thursday, November 7, 2013
  • by dmkuznetsov
  • Repository
  • 2 Watchers
  • 5 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Runtime

Now, you can disable and override standard functions in real-time., (*1)


CODE;

// thrown exception, becouse str_replace disabled
Dm\Runtime\Api::code($code)
    ->disableFunction('str_replace')
    ->execute();

CODE;

// output 111
echo str_replace( 0, 1, 100 );

// output 000
Dm\Runtime\Api::code($code)
    ->overrideFunction('str_replace', function ($search, $replace, $subject) {
        echo str_replace($replace, $search, $subject);
    })
    ->execute();

The Versions

07/11 2013

dev-master

9999999-dev

PHP-library for disable and override standard functions in real-time

  Sources   Download

The Requires

  • php >=5.3.0

 

hook override php functions disable

07/11 2013

1.0.0

1.0.0.0

PHP-library for disable and override standard functions in real-time

  Sources   Download

The Requires

  • php >=5.3.0

 

hook override php functions disable