URL not found - http://doc.php.net/downloads/json/php_manual_en.json

Created on 2 January 2025, 3 months ago

api.install has this code:

  // Create new PHP branch.
  /** @var \Drupal\api\Interfaces\PhpBranchInterface $php_branch */
  $php_branch = PhpBranch::create();
  $php_branch
    ->setTitle('PHP functions')
    ->setFunctionList('http://doc.php.net/downloads/json/php_manual_en.json')
    ->setFunctionUrlPattern('http://php.net/!function')
    ->setUpdateFrequency(Utilities::ONE_MONTH)
    ->save();

But http://doc.php.net/downloads/json/php_manual_en.json does not exist. This causes problems on my site when api is installed, for example:

 $ drush cr
[error]  GuzzleHttp\Exception\ClientException: Client error: `GET http://doc.php.net/downloads/json/php_manual_en.json` resulted in a `404 Not Found` response:
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scal (truncated...)
 in GuzzleHttp\Exception\RequestException::create() (line 111 of xxxx/www/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php). 
πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024