Hi, just compiled bitcoind with your patch, and getting the following output:
The php code is:
try {
$test = $bitcoin->sendfrom('test_1', 'mn6zpXzT5ouQBjCXJe8Bbo8JZoxZA3d34y', 25, $minconf=1);
print $test;
} catch (Exception $e) {
echo 'Exception abgefangen: ', $e->getMessage(), "\n";
print '<pre>';
print_r($e);
print '</pre>';
}
And thats the output:
Exception abgefangen: Request error: Array
Exception Object
(
[message:protected] => Request error: Array
[string:Exception:private] =>
[code:protected] => 0
[file:protected] => D:\xampp\htdocs\dev\bitcoin\jsonRPCClient.php
[line:protected] => 156
[trace:Exception:private] => Array
(
[0] => Array
(
[file] => D:\xampp\htdocs\dev\bitcoin\test2.php
[line] => 28
[function] => __call
[class] => jsonRPCClient
[type] => ->
[args] => Array
(
[0] => sendfrom
[1] => Array
(
[0] => test_1
[1] => mn6zpXzT5ouQBjCXJe8Bbo8JZoxZA3d34y
[2] => 25
[3] => 1
)
)
)
[1] => Array
(
[file] => D:\xampp\htdocs\dev\bitcoin\test2.php
[line] => 28
[function] => sendfrom
[class] => jsonRPCClient
[type] => ->
[args] => Array
(
[0] => test_1
[1] => mn6zpXzT5ouQBjCXJe8Bbo8JZoxZA3d34y
[2] => 25
[3] => 1
)
)
)
[previous:Exception:private] =>
)
I don´t know if it is my fault because I misunderstood something here, but I can´t see any of the expected bitcoind error messages,
in this case it should throw an exception because the balance of the account is lower than the transaction amount.
thx!