From 1c8bcef56bbf90305e762bd7bc9846bfed6355f2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 7 Sep 2021 14:37:28 +0200 Subject: update to 5.0.0alpha4 raise dependency on psr 1.1.0 add fix for https://github.com/phalcon/cphalcon/issues/15645 from https://github.com/phalcon/cphalcon/pull/15646 --- PHPINFO | 4 +- REFLECTION | 534 ++++++++++++++++++++++++++++++++++++++++++++++++++---- build.patch | 19 ++ php-phalcon5.spec | 17 +- 4 files changed, 538 insertions(+), 36 deletions(-) create mode 100644 build.patch diff --git a/PHPINFO b/PHPINFO index 4b5a208..30bc6ac 100644 --- a/PHPINFO +++ b/PHPINFO @@ -5,8 +5,8 @@ phalcon Phalcon is a full stack PHP framework, delivered as a PHP extension, offering lower resource consumption and high performance. phalcon => enabled Author => Phalcon Team and contributors -Version => 5.0.0alpha3 -Build Date => May 6 2021 00:00:00 +Version => 5.0.0alpha4 +Build Date => Sep 7 2021 00:00:00 Powered by Zephir => Version 0.13.5-1232784 Directive => Local Value => Master Value diff --git a/REFLECTION b/REFLECTION index 12f9785..335aa8f 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #118 phalcon version 5.0.0alpha3 ] { +Extension [ extension #121 phalcon version 5.0.0alpha4 ] { - Dependencies { Dependency [ pdo (Required) ] @@ -66,7 +66,7 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { } } - - Classes [553] { + - Classes [555] { Interface [ interface Phalcon\Di\InjectionAwareInterface ] { - Constants [0] { @@ -2044,6 +2044,34 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { } } + Interface [ interface Phalcon\Http\Message\RequestMethodInterface ] { + + - Constants [10] { + Constant [ public string METHOD_CONNECT ] { CONNECT } + Constant [ public string METHOD_DELETE ] { DELETE } + Constant [ public string METHOD_GET ] { GET } + Constant [ public string METHOD_HEAD ] { HEAD } + Constant [ public string METHOD_OPTIONS ] { OPTIONS } + Constant [ public string METHOD_PATCH ] { PATCH } + Constant [ public string METHOD_POST ] { POST } + Constant [ public string METHOD_PURGE ] { PURGE } + Constant [ public string METHOD_PUT ] { PUT } + Constant [ public string METHOD_TRACE ] { TRACE } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + Interface [ interface Phalcon\Annotations\Adapter\AdapterInterface ] { - Constants [0] { @@ -4052,6 +4080,112 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { } } + Interface [ interface Phalcon\Http\Message\ResponseStatusCodeInterface ] { + + - Constants [88] { + Constant [ public int STATUS_CONTINUE ] { 100 } + Constant [ public int STATUS_SWITCHING_PROTOCOLS ] { 101 } + Constant [ public int STATUS_PROCESSING ] { 102 } + Constant [ public int STATUS_EARLY_HINTS ] { 103 } + Constant [ public int STATUS_OK ] { 200 } + Constant [ public int STATUS_CREATED ] { 201 } + Constant [ public int STATUS_ACCEPTED ] { 202 } + Constant [ public int STATUS_NON_AUTHORITATIVE_INFORMATION ] { 203 } + Constant [ public int STATUS_NO_CONTENT ] { 204 } + Constant [ public int STATUS_RESET_CONTENT ] { 205 } + Constant [ public int STATUS_PARTIAL_CONTENT ] { 206 } + Constant [ public int STATUS_MULTI_STATUS ] { 207 } + Constant [ public int STATUS_ALREADY_REPORTED ] { 208 } + Constant [ public int STATUS_IM_USED ] { 226 } + Constant [ public int STATUS_MULTIPLE_CHOICES ] { 300 } + Constant [ public int STATUS_MOVED_PERMANENTLY ] { 301 } + Constant [ public int STATUS_FOUND ] { 302 } + Constant [ public int STATUS_SEE_OTHER ] { 303 } + Constant [ public int STATUS_NOT_MODIFIED ] { 304 } + Constant [ public int STATUS_USE_PROXY ] { 305 } + Constant [ public int STATUS_RESERVED ] { 306 } + Constant [ public int STATUS_TEMPORARY_REDIRECT ] { 307 } + Constant [ public int STATUS_PERMANENT_REDIRECT ] { 308 } + Constant [ public int STATUS_BAD_REQUEST ] { 400 } + Constant [ public int STATUS_UNAUTHORIZED ] { 401 } + Constant [ public int STATUS_PAYMENT_REQUIRED ] { 402 } + Constant [ public int STATUS_FORBIDDEN ] { 403 } + Constant [ public int STATUS_NOT_FOUND ] { 404 } + Constant [ public int STATUS_METHOD_NOT_ALLOWED ] { 405 } + Constant [ public int STATUS_NOT_ACCEPTABLE ] { 406 } + Constant [ public int STATUS_PROXY_AUTHENTICATION_REQUIRED ] { 407 } + Constant [ public int STATUS_REQUEST_TIMEOUT ] { 408 } + Constant [ public int STATUS_CONFLICT ] { 409 } + Constant [ public int STATUS_GONE ] { 410 } + Constant [ public int STATUS_LENGTH_REQUIRED ] { 411 } + Constant [ public int STATUS_PRECONDITION_FAILED ] { 412 } + Constant [ public int STATUS_PAYLOAD_TOO_LARGE ] { 413 } + Constant [ public int STATUS_URI_TOO_LONG ] { 414 } + Constant [ public int STATUS_UNSUPPORTED_MEDIA_TYPE ] { 415 } + Constant [ public int STATUS_RANGE_NOT_SATISFIABLE ] { 416 } + Constant [ public int STATUS_EXPECTATION_FAILED ] { 417 } + Constant [ public int STATUS_IM_A_TEAPOT ] { 418 } + Constant [ public int STATUS_MISDIRECTED_REQUEST ] { 421 } + Constant [ public int STATUS_UNPROCESSABLE_ENTITY ] { 422 } + Constant [ public int STATUS_LOCKED ] { 423 } + Constant [ public int STATUS_FAILED_DEPENDENCY ] { 424 } + Constant [ public int STATUS_TOO_EARLY ] { 425 } + Constant [ public int STATUS_UPGRADE_REQUIRED ] { 426 } + Constant [ public int STATUS_PRECONDITION_REQUIRED ] { 428 } + Constant [ public int STATUS_TOO_MANY_REQUESTS ] { 429 } + Constant [ public int STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE ] { 431 } + Constant [ public int STATUS_UNAVAILABLE_FOR_LEGAL_REASONS ] { 451 } + Constant [ public int STATUS_INTERNAL_SERVER_ERROR ] { 500 } + Constant [ public int STATUS_NOT_IMPLEMENTED ] { 501 } + Constant [ public int STATUS_BAD_GATEWAY ] { 502 } + Constant [ public int STATUS_SERVICE_UNAVAILABLE ] { 503 } + Constant [ public int STATUS_GATEWAY_TIMEOUT ] { 504 } + Constant [ public int STATUS_VERSION_NOT_SUPPORTED ] { 505 } + Constant [ public int STATUS_VARIANT_ALSO_NEGOTIATES ] { 506 } + Constant [ public int STATUS_INSUFFICIENT_STORAGE ] { 507 } + Constant [ public int STATUS_LOOP_DETECTED ] { 508 } + Constant [ public int STATUS_NOT_EXTENDED ] { 510 } + Constant [ public int STATUS_NETWORK_AUTHENTICATION_REQUIRED ] { 511 } + Constant [ public int STATUS_THIS_IS_FINE ] { 218 } + Constant [ public int STATUS_PAGE_EXPIRED ] { 419 } + Constant [ public int STATUS_METHOD_FAILURE ] { 420 } + Constant [ public int STATUS_LOGIN_TIMEOUT ] { 440 } + Constant [ public int STATUS_NO_RESPONSE ] { 444 } + Constant [ public int STATUS_RETRY_WITH ] { 449 } + Constant [ public int STATUS_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS ] { 450 } + Constant [ public int STATUS_REQUEST_HEADER_TOO_LARGE ] { 494 } + Constant [ public int STATUS_SSL_CERTIFICATE_ERROR ] { 495 } + Constant [ public int STATUS_SSL_CERTIFICATE_REQUIRED ] { 496 } + Constant [ public int STATUS_HTTP_REQUEST_SENT_TO_HTTPS_PORT ] { 497 } + Constant [ public int STATUS_INVALID_TOKEN_ESRI ] { 498 } + Constant [ public int STATUS_CLIENT_CLOSED_REQUEST ] { 499 } + Constant [ public int STATUS_BANDWIDTH_LIMIT_EXCEEDED ] { 509 } + Constant [ public int STATUS_UNKNOWN_ERROR ] { 520 } + Constant [ public int STATUS_WEB_SERVER_IS_DOWN ] { 521 } + Constant [ public int STATUS_CONNECTION_TIMEOUT ] { 522 } + Constant [ public int STATUS_ORIGIN_IS_UNREACHABLE ] { 523 } + Constant [ public int STATUS_TIMEOUT_OCCURRED ] { 524 } + Constant [ public int STATUS_SSL_HANDSHAKE_FAILED ] { 525 } + Constant [ public int STATUS_INVALID_SSL_CERTIFICATE ] { 526 } + Constant [ public int STATUS_RAILGUN_ERROR ] { 527 } + Constant [ public int STATUS_ORIGIN_DNS_ERROR ] { 530 } + Constant [ public int STATUS_NETWORK_READ_TIMEOUT_ERROR ] { 598 } + Constant [ public int STATUS_NETWORK_CONNECT_TIMEOUT_ERROR ] { 599 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + Interface [ interface Phalcon\Mvc\EntityInterface ] { - Constants [0] { @@ -15839,10 +15973,25 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { Property [ protected $queue ] } - - Methods [11] { + - Methods [13] { Method [ public method __destruct ] { } + Method [ public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + Method [ public method add ] { - Parameters [1] { @@ -17634,19 +17783,21 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { - Static methods [0] { } - - Properties [9] { + - Properties [11] { Property [ protected $container ] Property [ protected $autoescape ] Property [ protected $automaticHtml ] Property [ protected $cssClasses ] + Property [ protected $cssIconClasses ] Property [ protected $customTemplate ] Property [ protected $escaperService ] Property [ protected $implicitFlush ] + Property [ protected $interpolator ] Property [ protected $messages ] Property [ protected $sessionService ] } - - Methods [23] { + - Methods [25] { Method [ public method getAutoescape ] { - Parameters [0] { @@ -17661,6 +17812,13 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { - Return [ array ] } + Method [ public method getCssIconClasses ] { + + - Parameters [0] { + } + - Return [ array ] + } + Method [ public method getCustomTemplate ] { - Parameters [0] { @@ -17730,6 +17888,14 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { - Return [ Phalcon\Flash\FlashInterface ] } + Method [ public method setCssIconClasses ] { + + - Parameters [1] { + Parameter #0 [ array $cssIconClasses ] + } + - Return [ Phalcon\Flash\FlashInterface ] + } + Method [ public method setCustomTemplate ] { - Parameters [1] { @@ -17780,8 +17946,9 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { Method [ private method getTemplate ] { - - Parameters [1] { + - Parameters [2] { Parameter #0 [ string $cssClassses ] + Parameter #1 [ string $cssIconClasses ] } - Return [ string ] } @@ -17829,9 +17996,19 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { } } - Class [ abstract class Phalcon\Http\Message\AbstractRequest extends Phalcon\Http\Message\AbstractMessage ] { + Class [ abstract class Phalcon\Http\Message\AbstractRequest extends Phalcon\Http\Message\AbstractMessage implements Phalcon\Http\Message\RequestMethodInterface ] { - - Constants [0] { + - Constants [10] { + Constant [ public string METHOD_CONNECT ] { CONNECT } + Constant [ public string METHOD_DELETE ] { DELETE } + Constant [ public string METHOD_GET ] { GET } + Constant [ public string METHOD_HEAD ] { HEAD } + Constant [ public string METHOD_OPTIONS ] { OPTIONS } + Constant [ public string METHOD_PATCH ] { PATCH } + Constant [ public string METHOD_POST ] { POST } + Constant [ public string METHOD_PURGE ] { PURGE } + Constant [ public string METHOD_PUT ] { PUT } + Constant [ public string METHOD_TRACE ] { TRACE } } - Static properties [0] { @@ -28293,14 +28470,14 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { Method [ public method get ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } } Method [ public method has ] { - Parameters [1] { - Parameter #0 [ $name ] + Parameter #0 [ string $name ] } - Return [ bool ] } @@ -37720,19 +37897,21 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { - Static methods [0] { } - - Properties [9] { + - Properties [11] { Property [ protected $container ] Property [ protected $autoescape ] Property [ protected $automaticHtml ] Property [ protected $cssClasses ] + Property [ protected $cssIconClasses ] Property [ protected $customTemplate ] Property [ protected $escaperService ] Property [ protected $implicitFlush ] + Property [ protected $interpolator ] Property [ protected $messages ] Property [ protected $sessionService ] } - - Methods [21] { + - Methods [23] { Method [ public method message ] { - Parameters [2] { @@ -37764,6 +37943,13 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { - Return [ array ] } + Method [ public method getCssIconClasses ] { + + - Parameters [0] { + } + - Return [ array ] + } + Method [ public method getCustomTemplate ] { - Parameters [0] { @@ -37833,6 +38019,14 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { - Return [ Phalcon\Flash\FlashInterface ] } + Method [ public method setCssIconClasses ] { + + - Parameters [1] { + Parameter #0 [ array $cssIconClasses ] + } + - Return [ Phalcon\Flash\FlashInterface ] + } + Method [ public method setCustomTemplate ] { - Parameters [1] { @@ -37973,19 +38167,21 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { - Static methods [0] { } - - Properties [9] { + - Properties [11] { Property [ protected $container ] Property [ protected $autoescape ] Property [ protected $automaticHtml ] Property [ protected $cssClasses ] + Property [ protected $cssIconClasses ] Property [ protected $customTemplate ] Property [ protected $escaperService ] Property [ protected $implicitFlush ] + Property [ protected $interpolator ] Property [ protected $messages ] Property [ protected $sessionService ] } - - Methods [26] { + - Methods [28] { Method [ public method clear ] { - Parameters [0] { @@ -38065,6 +38261,13 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { - Return [ array ] } + Method [ public method getCssIconClasses ] { + + - Parameters [0] { + } + - Return [ array ] + } + Method [ public method getCustomTemplate ] { - Parameters [0] { @@ -38127,6 +38330,14 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { - Return [ Phalcon\Flash\FlashInterface ] } + Method [ public method setCssIconClasses ] { + + - Parameters [1] { + Parameter #0 [ array $cssIconClasses ] + } + - Return [ Phalcon\Flash\FlashInterface ] + } + Method [ public method setCustomTemplate ] { - Parameters [1] { @@ -48424,9 +48635,19 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { } } - Class [ final class Phalcon\Http\Message\Request extends Phalcon\Http\Message\AbstractRequest implements Psr\Http\Message\RequestInterface, Psr\Http\Message\MessageInterface ] { + Class [ final class Phalcon\Http\Message\Request extends Phalcon\Http\Message\AbstractRequest implements Phalcon\Http\Message\RequestMethodInterface, Psr\Http\Message\RequestInterface, Psr\Http\Message\MessageInterface ] { - - Constants [0] { + - Constants [10] { + Constant [ public string METHOD_CONNECT ] { CONNECT } + Constant [ public string METHOD_DELETE ] { DELETE } + Constant [ public string METHOD_GET ] { GET } + Constant [ public string METHOD_HEAD ] { HEAD } + Constant [ public string METHOD_OPTIONS ] { OPTIONS } + Constant [ public string METHOD_PATCH ] { PATCH } + Constant [ public string METHOD_POST ] { POST } + Constant [ public string METHOD_PURGE ] { PURGE } + Constant [ public string METHOD_PUT ] { PUT } + Constant [ public string METHOD_TRACE ] { TRACE } } - Static properties [0] { @@ -48713,9 +48934,97 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { } } - Class [ final class Phalcon\Http\Message\Response extends Phalcon\Http\Message\AbstractMessage implements Psr\Http\Message\ResponseInterface, Psr\Http\Message\MessageInterface ] { - - - Constants [0] { + Class [ final class Phalcon\Http\Message\Response extends Phalcon\Http\Message\AbstractMessage implements Psr\Http\Message\ResponseInterface, Psr\Http\Message\MessageInterface, Phalcon\Http\Message\ResponseStatusCodeInterface ] { + + - Constants [88] { + Constant [ public int STATUS_CONTINUE ] { 100 } + Constant [ public int STATUS_SWITCHING_PROTOCOLS ] { 101 } + Constant [ public int STATUS_PROCESSING ] { 102 } + Constant [ public int STATUS_EARLY_HINTS ] { 103 } + Constant [ public int STATUS_OK ] { 200 } + Constant [ public int STATUS_CREATED ] { 201 } + Constant [ public int STATUS_ACCEPTED ] { 202 } + Constant [ public int STATUS_NON_AUTHORITATIVE_INFORMATION ] { 203 } + Constant [ public int STATUS_NO_CONTENT ] { 204 } + Constant [ public int STATUS_RESET_CONTENT ] { 205 } + Constant [ public int STATUS_PARTIAL_CONTENT ] { 206 } + Constant [ public int STATUS_MULTI_STATUS ] { 207 } + Constant [ public int STATUS_ALREADY_REPORTED ] { 208 } + Constant [ public int STATUS_IM_USED ] { 226 } + Constant [ public int STATUS_MULTIPLE_CHOICES ] { 300 } + Constant [ public int STATUS_MOVED_PERMANENTLY ] { 301 } + Constant [ public int STATUS_FOUND ] { 302 } + Constant [ public int STATUS_SEE_OTHER ] { 303 } + Constant [ public int STATUS_NOT_MODIFIED ] { 304 } + Constant [ public int STATUS_USE_PROXY ] { 305 } + Constant [ public int STATUS_RESERVED ] { 306 } + Constant [ public int STATUS_TEMPORARY_REDIRECT ] { 307 } + Constant [ public int STATUS_PERMANENT_REDIRECT ] { 308 } + Constant [ public int STATUS_BAD_REQUEST ] { 400 } + Constant [ public int STATUS_UNAUTHORIZED ] { 401 } + Constant [ public int STATUS_PAYMENT_REQUIRED ] { 402 } + Constant [ public int STATUS_FORBIDDEN ] { 403 } + Constant [ public int STATUS_NOT_FOUND ] { 404 } + Constant [ public int STATUS_METHOD_NOT_ALLOWED ] { 405 } + Constant [ public int STATUS_NOT_ACCEPTABLE ] { 406 } + Constant [ public int STATUS_PROXY_AUTHENTICATION_REQUIRED ] { 407 } + Constant [ public int STATUS_REQUEST_TIMEOUT ] { 408 } + Constant [ public int STATUS_CONFLICT ] { 409 } + Constant [ public int STATUS_GONE ] { 410 } + Constant [ public int STATUS_LENGTH_REQUIRED ] { 411 } + Constant [ public int STATUS_PRECONDITION_FAILED ] { 412 } + Constant [ public int STATUS_PAYLOAD_TOO_LARGE ] { 413 } + Constant [ public int STATUS_URI_TOO_LONG ] { 414 } + Constant [ public int STATUS_UNSUPPORTED_MEDIA_TYPE ] { 415 } + Constant [ public int STATUS_RANGE_NOT_SATISFIABLE ] { 416 } + Constant [ public int STATUS_EXPECTATION_FAILED ] { 417 } + Constant [ public int STATUS_IM_A_TEAPOT ] { 418 } + Constant [ public int STATUS_MISDIRECTED_REQUEST ] { 421 } + Constant [ public int STATUS_UNPROCESSABLE_ENTITY ] { 422 } + Constant [ public int STATUS_LOCKED ] { 423 } + Constant [ public int STATUS_FAILED_DEPENDENCY ] { 424 } + Constant [ public int STATUS_TOO_EARLY ] { 425 } + Constant [ public int STATUS_UPGRADE_REQUIRED ] { 426 } + Constant [ public int STATUS_PRECONDITION_REQUIRED ] { 428 } + Constant [ public int STATUS_TOO_MANY_REQUESTS ] { 429 } + Constant [ public int STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE ] { 431 } + Constant [ public int STATUS_UNAVAILABLE_FOR_LEGAL_REASONS ] { 451 } + Constant [ public int STATUS_INTERNAL_SERVER_ERROR ] { 500 } + Constant [ public int STATUS_NOT_IMPLEMENTED ] { 501 } + Constant [ public int STATUS_BAD_GATEWAY ] { 502 } + Constant [ public int STATUS_SERVICE_UNAVAILABLE ] { 503 } + Constant [ public int STATUS_GATEWAY_TIMEOUT ] { 504 } + Constant [ public int STATUS_VERSION_NOT_SUPPORTED ] { 505 } + Constant [ public int STATUS_VARIANT_ALSO_NEGOTIATES ] { 506 } + Constant [ public int STATUS_INSUFFICIENT_STORAGE ] { 507 } + Constant [ public int STATUS_LOOP_DETECTED ] { 508 } + Constant [ public int STATUS_NOT_EXTENDED ] { 510 } + Constant [ public int STATUS_NETWORK_AUTHENTICATION_REQUIRED ] { 511 } + Constant [ public int STATUS_THIS_IS_FINE ] { 218 } + Constant [ public int STATUS_PAGE_EXPIRED ] { 419 } + Constant [ public int STATUS_METHOD_FAILURE ] { 420 } + Constant [ public int STATUS_LOGIN_TIMEOUT ] { 440 } + Constant [ public int STATUS_NO_RESPONSE ] { 444 } + Constant [ public int STATUS_RETRY_WITH ] { 449 } + Constant [ public int STATUS_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS ] { 450 } + Constant [ public int STATUS_REQUEST_HEADER_TOO_LARGE ] { 494 } + Constant [ public int STATUS_SSL_CERTIFICATE_ERROR ] { 495 } + Constant [ public int STATUS_SSL_CERTIFICATE_REQUIRED ] { 496 } + Constant [ public int STATUS_HTTP_REQUEST_SENT_TO_HTTPS_PORT ] { 497 } + Constant [ public int STATUS_INVALID_TOKEN_ESRI ] { 498 } + Constant [ public int STATUS_CLIENT_CLOSED_REQUEST ] { 499 } + Constant [ public int STATUS_BANDWIDTH_LIMIT_EXCEEDED ] { 509 } + Constant [ public int STATUS_UNKNOWN_ERROR ] { 520 } + Constant [ public int STATUS_WEB_SERVER_IS_DOWN ] { 521 } + Constant [ public int STATUS_CONNECTION_TIMEOUT ] { 522 } + Constant [ public int STATUS_ORIGIN_IS_UNREACHABLE ] { 523 } + Constant [ public int STATUS_TIMEOUT_OCCURRED ] { 524 } + Constant [ public int STATUS_SSL_HANDSHAKE_FAILED ] { 525 } + Constant [ public int STATUS_INVALID_SSL_CERTIFICATE ] { 526 } + Constant [ public int STATUS_RAILGUN_ERROR ] { 527 } + Constant [ public int STATUS_ORIGIN_DNS_ERROR ] { 530 } + Constant [ public int STATUS_NETWORK_READ_TIMEOUT_ERROR ] { 598 } + Constant [ public int STATUS_NETWORK_CONNECT_TIMEOUT_ERROR ] { 599 } } - Static properties [0] { @@ -49004,9 +49313,19 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { } } - Class [ final class Phalcon\Http\Message\ServerRequest extends Phalcon\Http\Message\AbstractRequest implements Psr\Http\Message\ServerRequestInterface, Psr\Http\Message\MessageInterface, Psr\Http\Message\RequestInterface ] { + Class [ final class Phalcon\Http\Message\ServerRequest extends Phalcon\Http\Message\AbstractRequest implements Phalcon\Http\Message\RequestMethodInterface, Psr\Http\Message\ServerRequestInterface, Psr\Http\Message\MessageInterface, Psr\Http\Message\RequestInterface ] { - - Constants [0] { + - Constants [10] { + Constant [ public string METHOD_CONNECT ] { CONNECT } + Constant [ public string METHOD_DELETE ] { DELETE } + Constant [ public string METHOD_GET ] { GET } + Constant [ public string METHOD_HEAD ] { HEAD } + Constant [ public string METHOD_OPTIONS ] { OPTIONS } + Constant [ public string METHOD_PATCH ] { PATCH } + Constant [ public string METHOD_POST ] { POST } + Constant [ public string METHOD_PURGE ] { PURGE } + Constant [ public string METHOD_PUT ] { PUT } + Constant [ public string METHOD_TRACE ] { TRACE } } - Static properties [0] { @@ -49382,9 +49701,19 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { } } - Class [ class Phalcon\Http\Message\ServerRequestFactory implements Psr\Http\Message\ServerRequestFactoryInterface ] { + Class [ class Phalcon\Http\Message\ServerRequestFactory implements Psr\Http\Message\ServerRequestFactoryInterface, Phalcon\Http\Message\RequestMethodInterface ] { - - Constants [0] { + - Constants [10] { + Constant [ public string METHOD_CONNECT ] { CONNECT } + Constant [ public string METHOD_DELETE ] { DELETE } + Constant [ public string METHOD_GET ] { GET } + Constant [ public string METHOD_HEAD ] { HEAD } + Constant [ public string METHOD_OPTIONS ] { OPTIONS } + Constant [ public string METHOD_PATCH ] { PATCH } + Constant [ public string METHOD_POST ] { POST } + Constant [ public string METHOD_PURGE ] { PURGE } + Constant [ public string METHOD_PUT ] { PUT } + Constant [ public string METHOD_TRACE ] { TRACE } } - Static properties [0] { @@ -50406,9 +50735,19 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { } } - Class [ class Phalcon\Http\Request extends Phalcon\Di\AbstractInjectionAware implements Phalcon\Di\InjectionAwareInterface, Phalcon\Http\RequestInterface ] { + Class [ class Phalcon\Http\Request extends Phalcon\Di\AbstractInjectionAware implements Phalcon\Di\InjectionAwareInterface, Phalcon\Http\RequestInterface, Phalcon\Http\Message\RequestMethodInterface ] { - - Constants [0] { + - Constants [10] { + Constant [ public string METHOD_CONNECT ] { CONNECT } + Constant [ public string METHOD_DELETE ] { DELETE } + Constant [ public string METHOD_GET ] { GET } + Constant [ public string METHOD_HEAD ] { HEAD } + Constant [ public string METHOD_OPTIONS ] { OPTIONS } + Constant [ public string METHOD_PATCH ] { PATCH } + Constant [ public string METHOD_POST ] { POST } + Constant [ public string METHOD_PURGE ] { PURGE } + Constant [ public string METHOD_PUT ] { PUT } + Constant [ public string METHOD_TRACE ] { TRACE } } - Static properties [0] { @@ -51157,9 +51496,97 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { } } - Class [ class Phalcon\Http\Response implements Phalcon\Http\ResponseInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface ] { - - - Constants [0] { + Class [ class Phalcon\Http\Response implements Phalcon\Http\ResponseInterface, Phalcon\Di\InjectionAwareInterface, Phalcon\Events\EventsAwareInterface, Phalcon\Http\Message\ResponseStatusCodeInterface ] { + + - Constants [88] { + Constant [ public int STATUS_CONTINUE ] { 100 } + Constant [ public int STATUS_SWITCHING_PROTOCOLS ] { 101 } + Constant [ public int STATUS_PROCESSING ] { 102 } + Constant [ public int STATUS_EARLY_HINTS ] { 103 } + Constant [ public int STATUS_OK ] { 200 } + Constant [ public int STATUS_CREATED ] { 201 } + Constant [ public int STATUS_ACCEPTED ] { 202 } + Constant [ public int STATUS_NON_AUTHORITATIVE_INFORMATION ] { 203 } + Constant [ public int STATUS_NO_CONTENT ] { 204 } + Constant [ public int STATUS_RESET_CONTENT ] { 205 } + Constant [ public int STATUS_PARTIAL_CONTENT ] { 206 } + Constant [ public int STATUS_MULTI_STATUS ] { 207 } + Constant [ public int STATUS_ALREADY_REPORTED ] { 208 } + Constant [ public int STATUS_IM_USED ] { 226 } + Constant [ public int STATUS_MULTIPLE_CHOICES ] { 300 } + Constant [ public int STATUS_MOVED_PERMANENTLY ] { 301 } + Constant [ public int STATUS_FOUND ] { 302 } + Constant [ public int STATUS_SEE_OTHER ] { 303 } + Constant [ public int STATUS_NOT_MODIFIED ] { 304 } + Constant [ public int STATUS_USE_PROXY ] { 305 } + Constant [ public int STATUS_RESERVED ] { 306 } + Constant [ public int STATUS_TEMPORARY_REDIRECT ] { 307 } + Constant [ public int STATUS_PERMANENT_REDIRECT ] { 308 } + Constant [ public int STATUS_BAD_REQUEST ] { 400 } + Constant [ public int STATUS_UNAUTHORIZED ] { 401 } + Constant [ public int STATUS_PAYMENT_REQUIRED ] { 402 } + Constant [ public int STATUS_FORBIDDEN ] { 403 } + Constant [ public int STATUS_NOT_FOUND ] { 404 } + Constant [ public int STATUS_METHOD_NOT_ALLOWED ] { 405 } + Constant [ public int STATUS_NOT_ACCEPTABLE ] { 406 } + Constant [ public int STATUS_PROXY_AUTHENTICATION_REQUIRED ] { 407 } + Constant [ public int STATUS_REQUEST_TIMEOUT ] { 408 } + Constant [ public int STATUS_CONFLICT ] { 409 } + Constant [ public int STATUS_GONE ] { 410 } + Constant [ public int STATUS_LENGTH_REQUIRED ] { 411 } + Constant [ public int STATUS_PRECONDITION_FAILED ] { 412 } + Constant [ public int STATUS_PAYLOAD_TOO_LARGE ] { 413 } + Constant [ public int STATUS_URI_TOO_LONG ] { 414 } + Constant [ public int STATUS_UNSUPPORTED_MEDIA_TYPE ] { 415 } + Constant [ public int STATUS_RANGE_NOT_SATISFIABLE ] { 416 } + Constant [ public int STATUS_EXPECTATION_FAILED ] { 417 } + Constant [ public int STATUS_IM_A_TEAPOT ] { 418 } + Constant [ public int STATUS_MISDIRECTED_REQUEST ] { 421 } + Constant [ public int STATUS_UNPROCESSABLE_ENTITY ] { 422 } + Constant [ public int STATUS_LOCKED ] { 423 } + Constant [ public int STATUS_FAILED_DEPENDENCY ] { 424 } + Constant [ public int STATUS_TOO_EARLY ] { 425 } + Constant [ public int STATUS_UPGRADE_REQUIRED ] { 426 } + Constant [ public int STATUS_PRECONDITION_REQUIRED ] { 428 } + Constant [ public int STATUS_TOO_MANY_REQUESTS ] { 429 } + Constant [ public int STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE ] { 431 } + Constant [ public int STATUS_UNAVAILABLE_FOR_LEGAL_REASONS ] { 451 } + Constant [ public int STATUS_INTERNAL_SERVER_ERROR ] { 500 } + Constant [ public int STATUS_NOT_IMPLEMENTED ] { 501 } + Constant [ public int STATUS_BAD_GATEWAY ] { 502 } + Constant [ public int STATUS_SERVICE_UNAVAILABLE ] { 503 } + Constant [ public int STATUS_GATEWAY_TIMEOUT ] { 504 } + Constant [ public int STATUS_VERSION_NOT_SUPPORTED ] { 505 } + Constant [ public int STATUS_VARIANT_ALSO_NEGOTIATES ] { 506 } + Constant [ public int STATUS_INSUFFICIENT_STORAGE ] { 507 } + Constant [ public int STATUS_LOOP_DETECTED ] { 508 } + Constant [ public int STATUS_NOT_EXTENDED ] { 510 } + Constant [ public int STATUS_NETWORK_AUTHENTICATION_REQUIRED ] { 511 } + Constant [ public int STATUS_THIS_IS_FINE ] { 218 } + Constant [ public int STATUS_PAGE_EXPIRED ] { 419 } + Constant [ public int STATUS_METHOD_FAILURE ] { 420 } + Constant [ public int STATUS_LOGIN_TIMEOUT ] { 440 } + Constant [ public int STATUS_NO_RESPONSE ] { 444 } + Constant [ public int STATUS_RETRY_WITH ] { 449 } + Constant [ public int STATUS_BLOCKED_BY_WINDOWS_PARENTAL_CONTROLS ] { 450 } + Constant [ public int STATUS_REQUEST_HEADER_TOO_LARGE ] { 494 } + Constant [ public int STATUS_SSL_CERTIFICATE_ERROR ] { 495 } + Constant [ public int STATUS_SSL_CERTIFICATE_REQUIRED ] { 496 } + Constant [ public int STATUS_HTTP_REQUEST_SENT_TO_HTTPS_PORT ] { 497 } + Constant [ public int STATUS_INVALID_TOKEN_ESRI ] { 498 } + Constant [ public int STATUS_CLIENT_CLOSED_REQUEST ] { 499 } + Constant [ public int STATUS_BANDWIDTH_LIMIT_EXCEEDED ] { 509 } + Constant [ public int STATUS_UNKNOWN_ERROR ] { 520 } + Constant [ public int STATUS_WEB_SERVER_IS_DOWN ] { 521 } + Constant [ public int STATUS_CONNECTION_TIMEOUT ] { 522 } + Constant [ public int STATUS_ORIGIN_IS_UNREACHABLE ] { 523 } + Constant [ public int STATUS_TIMEOUT_OCCURRED ] { 524 } + Constant [ public int STATUS_SSL_HANDSHAKE_FAILED ] { 525 } + Constant [ public int STATUS_INVALID_SSL_CERTIFICATE ] { 526 } + Constant [ public int STATUS_RAILGUN_ERROR ] { 527 } + Constant [ public int STATUS_ORIGIN_DNS_ERROR ] { 530 } + Constant [ public int STATUS_NETWORK_READ_TIMEOUT_ERROR ] { 598 } + Constant [ public int STATUS_NETWORK_CONNECT_TIMEOUT_ERROR ] { 599 } } - Static properties [0] { @@ -53283,7 +53710,7 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { Property [ protected $queue ] } - - Methods [11] { + - Methods [13] { Method [ public method close ] { - Parameters [0] { @@ -53302,6 +53729,21 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { Method [ public method __destruct ] { } + Method [ public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + Method [ public method add ] { - Parameters [1] { @@ -53385,7 +53827,7 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { Property [ protected $options ] } - - Methods [13] { + - Methods [15] { Method [ public method getName ] { - Parameters [0] { @@ -53419,6 +53861,21 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { Method [ public method __destruct ] { } + Method [ public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + Method [ public method add ] { - Parameters [1] { @@ -53502,7 +53959,7 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { Property [ protected $option ] } - - Methods [13] { + - Methods [15] { Method [ public method __construct ] { - Parameters [2] { @@ -53537,6 +53994,21 @@ Extension [ extension #118 phalcon version 5.0.0alpha3 ] { Method [ public method __destruct ] { } + Method [ public method __serialize ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method __unserialize ] { + + - Parameters [1] { + Parameter #0 [ array $data ] + } + - Return [ void ] + } + Method [ public method add ] { - Parameters [1] { diff --git a/build.patch b/build.patch new file mode 100644 index 0000000..b4b9950 --- /dev/null +++ b/build.patch @@ -0,0 +1,19 @@ +--- ./phalcon.zep.c.old 2021-09-07 14:01:41.790270964 +0200 ++++ ./phalcon.zep.c 2021-09-07 14:01:46.532264202 +0200 +@@ -88,6 +88,16 @@ + #include + #include + ++#if PHP_VERSION_ID >= 80000 ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#endif ++ + #include + #include + #include diff --git a/php-phalcon5.spec b/php-phalcon5.spec index d0653dc..510a0d5 100644 --- a/php-phalcon5.spec +++ b/php-phalcon5.spec @@ -23,7 +23,7 @@ # after 40-json.ini, 20-pdo.ini, 40-psr.ini %global ini_name 50-%{pecl_name}.ini %global upstream_ver 5.0.0 -%global upstream_pre alpha3 +%global upstream_pre alpha4 Name: %{?scl_prefix}php-phalcon5 Version: %{upstream_ver}%{?upstream_pre:~%{upstream_pre}} @@ -38,20 +38,23 @@ URL: https://pecl.php.net/package/phalcon # pecl package Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_ver}%{?upstream_pre}.tgz +# See https://github.com/phalcon/cphalcon/pull/15646 +Patch0: build.patch + BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.4.1 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-hash BuildRequires: %{?scl_prefix}php-json BuildRequires: %{?scl_prefix}php-pdo -BuildRequires: %{?scl_prefix}php-pecl-psr-devel >= 1.0.1 +BuildRequires: %{?scl_prefix}php-pecl-psr-devel >= 1.1.0 Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} Requires: %{?scl_prefix}php-hash%{?_isa} Requires: %{?scl_prefix}php-json%{?_isa} Requires: %{?scl_prefix}php-pdo%{?_isa} -Requires: %{?scl_prefix}php-psr%{?_isa} >= 1.0.1 +Requires: %{?scl_prefix}php-psr%{?_isa} >= 1.1.0 %{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} Provides: %{?scl_prefix}php-phalcon = %{version}-%{release} @@ -96,6 +99,8 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO mv %{pecl_name}-%{upstream_ver}%{?upstream_pre} NTS cd NTS +%patch0 -p1 + # Sanity check, really often broken extver=$(sed -n '/#define PHP_PHALCON_VERSION/{s/.* "//;s/".*$//;p}' php_phalcon.h) if test "x${extver}" != "x%{upstream_ver}%{?upstream_pre:%{upstream_pre}}"; then @@ -255,6 +260,12 @@ fi %changelog +* Tue Sep 7 2021 Remi Collet - 5.0.0~alpha4-1 +- update to 5.0.0alpha4 +- raise dependency on psr 1.1.0 +- add fix for https://github.com/phalcon/cphalcon/issues/15645 + from https://github.com/phalcon/cphalcon/pull/15646 + * Thu Jul 1 2021 Remi Collet - 5.0.0~alpha3-1 - update to 5.0.0alpha3 -- cgit