Skip to content

phpdbg -h options doesn't list the -z option #9669

Closed

Description

@ccccmd

The "-h" option of phpdbg misses an option "z".

  • For the option "z", the following code appears during option parsing and modifies the zend_extensions_len and zend_extensions in sapi/phpdbg/phpdbg.c:1437-1443 for version 8.0.23.
			case 'z':
				zend_extensions_len++;
				if (zend_extensions) {
					zend_extensions = realloc(zend_extensions, sizeof(char*) * zend_extensions_len);
				} else zend_extensions = malloc(sizeof(char*) * zend_extensions_len);
				zend_extensions[zend_extensions_len-1] = strdup(php_optarg);
			break;

But it does not appear in the document provided by "-h".

It may prevent users from using the relevant function.

Activity

  1. cmb69 commented on Oct 4, 2022

    @cmb69
    Member

    Indeed. The -z option is for loading a zend_extension (same as -dzend_extension=). That should be fixed in php-src, though.

  2. transferred this issue fromphp/doc-enon Oct 4, 2022
  3. changed the title [-]The help document of phpdbg misses an option[/-] [+]phpdbg -h options doesn't list the -z option[/+] on Oct 4, 2022
  4. adsr commented on Oct 22, 2022

    @adsr
    Contributor
  5. added 2 commits that reference this issue on Jul 7, 2023
    4a28cc7
    e8b804d
  6. added a commit that references this issue on Feb 3, 2024
    119b062
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions