Skip to content

Commit

Permalink
Customize the link of some constants in the manual
Browse files Browse the repository at this point in the history
These changes are necessary because the links which are generated by default are already taken.
  • Loading branch information
kocsismate committed Jan 19, 2023
1 parent 733b102 commit 148ac36
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 4 deletions.
1 change: 1 addition & 0 deletions ext/ffi/ffi.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ final class FFI
/**
* @var int
* @cvalue __BIGGEST_ALIGNMENT__
* @link ffi-ffi.constants.biggest-alignment
*/
public const __BIGGEST_ALIGNMENT__ = UNKNOWN;

Expand Down
2 changes: 1 addition & 1 deletion ext/ffi/ffi_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions ext/snmp/snmp.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,62 +186,74 @@ class SNMP
/**
* @var int
* @cvalue SNMP_VERSION_1
* @link snmp.class.constants.version-1
*/
public const VERSION_1 = UNKNOWN;
/**
* @var int
* @cvalue SNMP_VERSION_2c
* @link snmp.class.constants.version-2c
*/
public const VERSION_2c = UNKNOWN;
/**
* @var int
* @cvalue SNMP_VERSION_2c
* @link snmp.class.constants.version-2c
*/
public const VERSION_2C = UNKNOWN;
/**
* @var int
* @cvalue SNMP_VERSION_3
* @link snmp.class.constants.version-3
*/
public const VERSION_3 = UNKNOWN;

/**
* @var int
* @cvalue PHP_SNMP_ERRNO_NOERROR
* @link snmp.class.constants.errno-noerror
*/
public const ERRNO_NOERROR = UNKNOWN;
/**
* @var int
* @cvalue PHP_SNMP_ERRNO_ANY
* @link snmp.class.constants.errno-any
*/
public const ERRNO_ANY = UNKNOWN;
/**
* @var int
* @cvalue PHP_SNMP_ERRNO_GENERIC
* @link snmp.class.constants.errno-generic
*/
public const ERRNO_GENERIC = UNKNOWN;
/**
* @var int
* @cvalue PHP_SNMP_ERRNO_TIMEOUT
* @link snmp.class.constants.errno-timeout
*/
public const ERRNO_TIMEOUT = UNKNOWN;
/**
* @var int
* @cvalue PHP_SNMP_ERRNO_ERROR_IN_REPLY
* @link snmp.class.constants.errno-error-in-reply
*/
public const ERRNO_ERROR_IN_REPLY = UNKNOWN;
/**
* @var int
* @cvalue PHP_SNMP_ERRNO_OID_NOT_INCREASING
* @link snmp.class.constants.errno-oid-not-increasing
*/
public const ERRNO_OID_NOT_INCREASING = UNKNOWN;
/**
* @var int
* @cvalue PHP_SNMP_ERRNO_OID_PARSING_ERROR
* @link snmp.class.constants.errno-oid-parsing-error
*/
public const ERRNO_OID_PARSING_ERROR = UNKNOWN;
/**
* @var int
* @cvalue PHP_SNMP_ERRNO_MULTIPLE_SET_QUERIES
* @link snmp.class.constants.errno-multiple-set-queries
*/
public const ERRNO_MULTIPLE_SET_QUERIES = UNKNOWN;

Expand Down
2 changes: 1 addition & 1 deletion ext/snmp/snmp_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions ext/sqlite3/sqlite3.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class SQLite3
/**
* @var int
* @cvalue SQLITE_OK
* @link sqlite3.class.constants.ok
*/
public const OK = UNKNOWN;

Expand All @@ -82,11 +83,13 @@ class SQLite3
/**
* @var int
* @cvalue SQLITE_DENY
* @link sqlite3.class.constants.deny
*/
public const DENY = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_IGNORE
* @link sqlite3.class.constants.ignore
*/
public const IGNORE = UNKNOWN;

Expand All @@ -95,172 +98,206 @@ class SQLite3
/**
* @var int
* @cvalue SQLITE_CREATE_INDEX
* @link sqlite3.class.constants.create-index
*/
public const CREATE_INDEX = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_CREATE_TABLE
* @link sqlite3.class.constants.create-table
*/
public const CREATE_TABLE = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_CREATE_TEMP_INDEX
* @link sqlite3.class.constants.create-temp-index
*/
public const CREATE_TEMP_INDEX = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_CREATE_TEMP_TABLE
* @link sqlite3.class.constants.create-temp-table
*/
public const CREATE_TEMP_TABLE = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_CREATE_TEMP_TRIGGER
* @link sqlite3.class.constants.create-temp-trigger
*/
public const CREATE_TEMP_TRIGGER = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_CREATE_TEMP_VIEW
* @link sqlite3.class.constants.create-temp-view
*/
public const CREATE_TEMP_VIEW = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_CREATE_TRIGGER
* @link sqlite3.class.constants.create-trigger
*/
public const CREATE_TRIGGER = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_CREATE_VIEW
* @link sqlite3.class.constants.create-view
*/
public const CREATE_VIEW = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DELETE
* @link sqlite3.class.constants.delete
*/
public const DELETE = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DROP_INDEX
* @link sqlite3.class.constants.drop-index
*/
public const DROP_INDEX = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DROP_TABLE
* @link sqlite3.class.constants.drop-table
*/
public const DROP_TABLE = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DROP_TEMP_INDEX
* @link sqlite3.class.constants.drop-temp-index
*/
public const DROP_TEMP_INDEX = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DROP_TEMP_TABLE
* @link sqlite3.class.constants.drop-temp-table
*/
public const DROP_TEMP_TABLE = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DROP_TEMP_TRIGGER
* @link sqlite3.class.constants.drop-temp-trigger
*/
public const DROP_TEMP_TRIGGER = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DROP_TEMP_VIEW
* @link sqlite3.class.constants.drop-temp-view
*/
public const DROP_TEMP_VIEW = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DROP_TRIGGER
* @link sqlite3.class.constants.drop-trigger
*/
public const DROP_TRIGGER = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DROP_VIEW
* @link sqlite3.class.constants.drop-view
*/
public const DROP_VIEW = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_INSERT
* @link sqlite3.class.constants.insert
*/
public const INSERT = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_PRAGMA
* @link sqlite3.class.constants.pragma
*/
public const PRAGMA = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_READ
* @link sqlite3.class.constants.read
*/
public const READ = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_SELECT
* @link sqlite3.class.constants.select
*/
public const SELECT = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_TRANSACTION
* @link sqlite3.class.constants.transaction
*/
public const TRANSACTION = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_UPDATE
* @link sqlite3.class.constants.update
*/
public const UPDATE = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_ATTACH
* @link sqlite3.class.constants.attach
*/
public const ATTACH = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DETACH
* @link sqlite3.class.constants.detach
*/
public const DETACH = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_ALTER_TABLE
* @link sqlite3.class.constants.alter-table
*/
public const ALTER_TABLE = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_REINDEX
* @link sqlite3.class.constants.reindex
*/
public const REINDEX = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_ANALYZE
* @link sqlite3.class.constants.analyze
*/
public const ANALYZE = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_CREATE_VTABLE
* @link sqlite3.class.constants.create-vtable
*/
public const CREATE_VTABLE = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_DROP_VTABLE
* @link sqlite3.class.constants.drop-vtable
*/
public const DROP_VTABLE = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_FUNCTION
* @link sqlite3.class.constants.function
*/
public const FUNCTION = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_SAVEPOINT
* @link sqlite3.class.constants.savepoint
*/
public const SAVEPOINT = UNKNOWN;
/**
* @var int
* @cvalue SQLITE_COPY
* @link sqlite3.class.constants.copy
*/
public const COPY = UNKNOWN;
#ifdef SQLITE_RECURSIVE
/**
* @var int
* @cvalue SQLITE_RECURSIVE
* @link sqlite3.class.constants.recursive
*/
public const RECURSIVE = UNKNOWN;
#endif
Expand Down
2 changes: 1 addition & 1 deletion ext/sqlite3/sqlite3_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 148ac36

Please sign in to comment.