intelephense
1.14.41.16.1
lib/stub/curl/curl.phplib/stub/curl/curl.php+25
Index: package/lib/stub/curl/curl.php
===================================================================
--- package/lib/stub/curl/curl.php
+++ package/lib/stub/curl/curl.php
@@ -5,8 +5,9 @@
use __IDE\LanguageLevelTypeAware;
use __IDE\StubsElementAvailable;
use __IDE\TentativeType;
use __IDE\Pure;
+use __IDE\Deprecated;
class CURLFile
{
#[LanguageLevelTypeAware(['8.1' => 'string'], default: '')]
@@ -88,8 +89,16 @@
public function __wakeup() {}
}
/**
+ * @since 8.5
+ */
+final class CurlSharePersistentHandle
+{
+ public readonly array $options;
+}
+
+/**
* Initialize a cURL session
* @link https://php.net/manual/en/function.curl-init.php
* @param string|null $url [optional] <p>
* If provided, the CURLOPT_URL option will be set
@@ -2142,8 +2151,9 @@
* </p>
* @return void
* @since 5.5
*/
+#[Deprecated(since: '8.5')]
function curl_share_close(#[LanguageLevelTypeAware(['8.0' => 'CurlShareHandle'], default: 'resource')] $share_handle): void {}
/**
* (PHP 5 >=5.5.0)<br/>
@@ -2587,8 +2597,9 @@
* @link https://php.net/manual/en/function.curl-close.php
* @param CurlHandle|resource $handle
* @return void
*/
+#[Deprecated(since: '8.5')]
function curl_close(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: 'resource')] $handle): void {}
/**
* Returns a new cURL multi handle
@@ -2723,8 +2734,9 @@
* @param CurlMultiHandle|resource $multi_handle
* @param int &$still_running <p>
* A reference to a flag to tell whether the operations are still running.
* </p>
+ * @param-out int $still_running
* @return int A cURL code defined in the cURL Predefined Constants.
* <p>
* This only returns errors regarding the whole multi stack. There might still have
* occurred problems on individual transfers even when this function returns
@@ -2752,8 +2764,9 @@
* @param resource $multi_handle
* @param int &$queued_messages [optional] <p>
* Number of messages that are still in the queue
* </p>
+ * @param-out int $queued_messages
* @return array{msg:int, result:int, handle:resource}|false On success, returns an associative array for the message, false on failure.
*/
#[Pure]
#[ArrayShape(["msg" => "int", "result" => "int", "handle" => "resource"])]
@@ -2766,8 +2779,9 @@
* @param CurlMultiHandle $multi_handle
* @param int &$queued_messages [optional] <p>
* Number of messages that are still in the queue
* </p>
+ * @param-out int $queued_messages
* @return array{msg:int, result:int, handle:CurlHandle}|false On success, returns an associative array for the message, false on failure.
*/
#[Pure]
#[ArrayShape(["msg" => "int", "result" => "int", "handle" => "CurlHandle"])]
@@ -2812,9 +2826,20 @@
/**
* @since 8.2
*/
function curl_upkeep(CurlHandle $handle): bool {}
+
/**
+ * @since 8.5
+ */
+function curl_multi_get_handles(CurlMultiHandle $multi_handle): array {}
+
+/**
+ * @since 8.5
+ */
+function curl_share_init_persistent(array $share_options): CurlSharePersistentHandle {}
+
+/**
* @since 8.0
*/
final class CurlHandle
{