Skip to content

Commit

Permalink
add missing PHP 8.4 entities
Browse files Browse the repository at this point in the history
  • Loading branch information
isfedorov committed Dec 14, 2024
1 parent 09c9a72 commit 0e82bdf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions PhpStormStubsMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4882,6 +4882,7 @@ final class PhpStormStubsMap
'pg_send_prepare' => 'pgsql/pgsql.php',
'pg_send_query' => 'pgsql/pgsql.php',
'pg_send_query_params' => 'pgsql/pgsql.php',
'pg_set_chunked_rows_size' => 'pgsql/pgsql.php',
'pg_set_client_encoding' => 'pgsql/pgsql.php',
'pg_set_error_context_visibility' => 'pgsql/pgsql.php',
'pg_set_error_verbosity' => 'pgsql/pgsql.php',
Expand Down Expand Up @@ -8661,6 +8662,7 @@ final class PhpStormStubsMap
'LIBXML_NONET' => 'libxml/libxml.php',
'LIBXML_NOWARNING' => 'libxml/libxml.php',
'LIBXML_NOXMLDECL' => 'libxml/libxml.php',
'LIBXML_NO_XXE' => 'libxml/libxml.php',
'LIBXML_NSCLEAN' => 'libxml/libxml.php',
'LIBXML_PARSEHUGE' => 'libxml/libxml.php',
'LIBXML_PEDANTIC' => 'libxml/libxml.php',
Expand Down Expand Up @@ -10935,6 +10937,7 @@ final class PhpStormStubsMap
'PGSQL_TRANSACTION_INERROR' => 'pgsql/pgsql.php',
'PGSQL_TRANSACTION_INTRANS' => 'pgsql/pgsql.php',
'PGSQL_TRANSACTION_UNKNOWN' => 'pgsql/pgsql.php',
'PGSQL_TUPLES_CHUNK' => 'pgsql/pgsql.php',
'PGSQL_TUPLES_OK' => 'pgsql/pgsql.php',
'PHP_AMQP_MAX_CHANNELS' => 'amqp/amqp.php',
'PHP_BINARY' => 'Core/Core_d.php',
Expand Down
2 changes: 2 additions & 0 deletions libxml/libxml.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,4 +350,6 @@ function libxml_get_external_entity_loader(): ?callable {}
* @since 8.4
*/
define('LIBXML_RECOVER', 1);

const LIBXML_NO_XXE = 8388608;
// End of libxml v.
7 changes: 6 additions & 1 deletion pgsql/pgsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -2115,6 +2115,11 @@ function pg_put_copy_data(PgSql\Connection $connection, string $cmd): int {}
* @param resource $socket
*/
function pg_socket_poll($socket, int $read, int $write, int $timeout = -1): int {}

/**
* @since 8.4
*/
function pg_set_chunked_rows_size(Pgsql\Connection $connection, int $size): bool {}
/**
* @since 8.4
*/
Expand Down Expand Up @@ -2496,5 +2501,5 @@ function pg_jit(?PgSql\Connection $connection = null): array {}
const PGSQL_SHOW_CONTEXT_NEVER = 0;
const PGSQL_SHOW_CONTEXT_ERRORS = 1;
const PGSQL_SHOW_CONTEXT_ALWAYS = 2;

const PGSQL_TUPLES_CHUNK = 12;
// End of pgsql v.
2 changes: 1 addition & 1 deletion tests/DockerImages/8.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.4.1-alpine
FROM php:8.4-alpine

RUN set -eux; \
apk add --repository http://dl-cdn.alpinelinux.org/alpine/edge/community --no-cache --virtual .build-deps \
Expand Down

0 comments on commit 0e82bdf

Please sign in to comment.