Skip to content

Commit

Permalink
Improved scanner to only look at the "returnvalues" sections (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duroth authored Oct 17, 2021
1 parent a5fa665 commit 9337088
Show file tree
Hide file tree
Showing 20 changed files with 460 additions and 1,201 deletions.
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"generated/curl.php",
"generated/datetime.php",
"generated/dir.php",
"generated/dom.php",
"generated/eio.php",
"generated/errorfunc.php",
"generated/exec.php",
Expand Down Expand Up @@ -62,7 +61,6 @@
"generated/opcache.php",
"generated/openssl.php",
"generated/outcontrol.php",
"generated/password.php",
"generated/pcntl.php",
"generated/pcre.php",
"generated/pgsql.php",
Expand Down
11 changes: 0 additions & 11 deletions generated/Exceptions/DomException.php

This file was deleted.

11 changes: 0 additions & 11 deletions generated/Exceptions/PasswordException.php

This file was deleted.

22 changes: 0 additions & 22 deletions generated/calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,6 @@

use Safe\Exceptions\CalendarException;

/**
* This function will return a Unix timestamp corresponding to the
* Julian Day given in julian_day. The time returned is
* UTC.
*
* @param int $julian_day A julian day number between 2440588 and 106751993607888
* on 64bit systems, or between 2440588 and 2465443 on 32bit systems.
* @return int The unix timestamp for the start (midnight, not noon) of the given Julian day
* @throws CalendarException
*
*/
function jdtounix(int $julian_day): int
{
error_clear_last();
$result = \jdtounix($julian_day);
if ($result === false) {
throw CalendarException::createFromPhpError();
}
return $result;
}


/**
* Return the Julian Day for a Unix timestamp
* (seconds since 1.1.1970), or for the current day if no
Expand Down
20 changes: 0 additions & 20 deletions generated/curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,26 +577,6 @@ function curl_init(string $url = null)
}


/**
* Return an integer containing the last multi curl error number.
*
* @param resource $multi_handle A cURL multi handle returned by
* curl_multi_init.
* @return int Return an integer containing the last multi curl error number.
* @throws CurlException
*
*/
function curl_multi_errno($multi_handle): int
{
error_clear_last();
$result = \curl_multi_errno($multi_handle);
if ($result === false) {
throw CurlException::createFromPhpError();
}
return $result;
}


/**
* Ask the multi handle if there are any messages or information from the individual transfers.
* Messages may include information such as an error code from the transfer or just the fact
Expand Down
Loading

0 comments on commit 9337088

Please # to comment.