# cat test_drop.php
<?php
require_once __DIR__ . '/vendor/autoload.php';
$config = ['host'=>'127.0.0.1','port'=>9308];
$client = new \Manticoresearch\Client($config);
$params = [
'index' => 'testrt',
['body' => ['silent'=>true ]]
];
$response = $client->indices()->drop($params);
# php test_drop.php
PHP Fatal error: Uncaught Manticoresearch\Exceptions\ResponseException: "DROP TABLE failed: unknown table 'testrt'" in /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Transport/Http.php:147
Stack trace:
#0 /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Client.php(381): Manticoresearch\Transport\Http->execute(Object(Manticoresearch\Endpoints\Indices\Drop), Array)
#1 /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Indices.php(104): Manticoresearch\Client->request(Object(Manticoresearch\Endpoints\Indices\Drop), Array)
#2 /Users/sn/test_drop.php(11): Manticoresearch\Indices->drop(Array)
#3 {main}
thrown in /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Transport/Http.php on line 147
Fatal error: Uncaught Manticoresearch\Exceptions\ResponseException: "DROP TABLE failed: unknown table 'testrt'" in /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Transport/Http.php:147
Stack trace:
#0 /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Client.php(381): Manticoresearch\Transport\Http->execute(Object(Manticoresearch\Endpoints\Indices\Drop), Array)
#1 /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Indices.php(104): Manticoresearch\Client->request(Object(Manticoresearch\Endpoints\Indices\Drop), Array)
#2 /Users/sn/test_drop.php(11): Manticoresearch\Indices->drop(Array)
#3 {main}
thrown in /Users/sn/vendor/manticoresoftware/manticoresearch-php/src/Manticoresearch/Transport/Http.php on line 147
According to https://github.com/manticoresoftware/manticoresearch-php/blob/master/docs/indices.md#drop
this shouldn't fail, but it fails: