Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- invoke() can handle CHANGING parameter. --SKIPIF-- <?php require_once(__DIR__ . '..

Decoded Output download

--TEST--
invoke() can handle CHANGING parameter.
--SKIPIF--
<?php
require_once(__DIR__ . '/skipif.inc');
skipif_online_tests_disabled();
?>
--FILE--
<?php
$config = require(__DIR__ . '/sapnwrfc.config.inc');
$c = new \SAPNWRFC\Connection($config);

$f = $c->getFunction('STFC_CHANGING');
$result = $f->invoke([
    'START_VALUE' => 0,
    'COUNTER' => 1,
]);

var_dump($result['COUNTER']);
var_dump($result['RESULT']);
--EXPECT--
int(2)
int(1)
 ?>

Did this file decode correctly?

Original Code

--TEST--
invoke() can handle CHANGING parameter.
--SKIPIF--
<?php
require_once(__DIR__ . '/skipif.inc');
skipif_online_tests_disabled();
?>
--FILE--
<?php
$config = require(__DIR__ . '/sapnwrfc.config.inc');
$c = new \SAPNWRFC\Connection($config);

$f = $c->getFunction('STFC_CHANGING');
$result = $f->invoke([
    'START_VALUE' => 0,
    'COUNTER' => 1,
]);

var_dump($result['COUNTER']);
var_dump($result['RESULT']);
--EXPECT--
int(2)
int(1)

Function Calls

None

Variables

None

Stats

MD5 078ff89fcc71a9b2df9f5891e2c8a9ed
Eval Count 0
Decode Time 82 ms