Skip to content

Declare ext/standard constants in stubs - part 12 #9729

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions ext/standard/user_filters.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,7 @@ PHP_MINIT_FUNCTION(user_filters)
return FAILURE;
}

REGISTER_LONG_CONSTANT("PSFS_PASS_ON", PSFS_PASS_ON, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PSFS_FEED_ME", PSFS_FEED_ME, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PSFS_ERR_FATAL", PSFS_ERR_FATAL, CONST_CS | CONST_PERSISTENT);

REGISTER_LONG_CONSTANT("PSFS_FLAG_NORMAL", PSFS_FLAG_NORMAL, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PSFS_FLAG_FLUSH_INC", PSFS_FLAG_FLUSH_INC, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("PSFS_FLAG_FLUSH_CLOSE", PSFS_FLAG_FLUSH_CLOSE, CONST_CS | CONST_PERSISTENT);
register_user_filters_symbols(module_number);

return SUCCESS;
}
Expand Down
32 changes: 32 additions & 0 deletions ext/standard/user_filters.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,38 @@

/** @generate-class-entries */

/**
* @var int
* @cvalue PSFS_PASS_ON
*/
const PSFS_PASS_ON = UNKNOWN;
/**
* @var int
* @cvalue PSFS_FEED_ME
*/
const PSFS_FEED_ME = UNKNOWN;
/**
* @var int
* @cvalue PSFS_ERR_FATAL
*/
const PSFS_ERR_FATAL = UNKNOWN;

/**
* @var int
* @cvalue PSFS_FLAG_NORMAL
*/
const PSFS_FLAG_NORMAL = UNKNOWN;
/**
* @var int
* @cvalue PSFS_FLAG_FLUSH_INC
*/
const PSFS_FLAG_FLUSH_INC = UNKNOWN;
/**
* @var int
* @cvalue PSFS_FLAG_FLUSH_CLOSE
*/
const PSFS_FLAG_FLUSH_CLOSE = UNKNOWN;

class php_user_filter
{
public string $filtername = "";
Expand Down
12 changes: 11 additions & 1 deletion ext/standard/user_filters_arginfo.h

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