Skip to content

checking for php... php #11522

Closed
Closed

Description

@SVGAnimate

Description

Build complete. But :

The following code:

user@host:/path/php-src/$ ./configure

Resulted in this output:

...
expr: non-integer argument
checking for php version... 7.2.24-0ubuntu0.16.04.16 (ok)
checking whether to enable computed goto gcc extension with re2c... no
/path/php-src/configure: line 5862: test: : integer expression expected
...
Thank you for using PHP.

But I expected this output instead:

checking for php version... 7.2.24 (too old)

PHP Version

PHP 8.2.8

Operating System

Ubuntu 16

Activity

  1. SVGAnimate commented on Jun 24, 2023

    @SVGAnimate
    ContributorAuthor

    To fix the "too old" error, I can run the configuration again with a specific version (the newly compiled php version) as well

    user@host:/path/php-src/$ export PHP=/path/php-src/sapi/cli/php && ./configure

    Resulted in this output:

    expr: non-integer argument
    /path/php-src/configure: line 5862: test: : integer expression expected
    checking for php version... 8.2.8-dev (ok)
    

    But I expected this output instead:

    checking for php version... 8.2.8 (ok)
    

    Can we fix this bug like this ? https://github.com/SVGAnimate/php-src/blob/m4_php_version_cut_suffix/build/php.m4#L1895

  2. ndossche commented on Jun 25, 2023

    @ndossche
    Member

    @SVGAnimate
    I can reproduce this with 8.3-dev. And your fix looks okay I think.

  3. linked a pull request that will close this issuefix #11522 #11524on Jun 27, 2023
  4. added 2 commits that reference this issue on Jun 27, 2023
    3483229
    ac60c5c
  5. added a commit that references this issue on Jun 27, 2023
    864c307
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