Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-6774

PHP: preg_match() always fail with PREG_INTERNAL_ERROR

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • php
    • None
    • None
    • rhel-sst-cs-stacks
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • ---
    • None

      Description of problem:

      PHP function preg_match() always fail with PREG_INTERNAL_ERROR status

      Version-Release number of selected component (if applicable):

      php-8.0.20-3.el9.x86_64
      on CentOS Stream 9

      How reproducible:

      php.ini = install default, no custom setting.
      any normal,simple call of preg_match() seems to reproduce this behavior.

      ```
      $a = preg_match('/any pattern/', 'any string'); # with any delimiter

      if ($a === false)

      { print "reproduced"; }

      ```

      Steps to Reproduce:
      1.
      2.
      3.

      Actual results:
      false (PREG_INTERNAL_ERROR)

      Expected results:

      preg_match() should return 0 or 1, depending on regex pattern and match string.

      Additional info:

      This behavior not observed with PHP on CentOS 6, 7, CentOS Stream 8, RHEL 9.0(PHP 8.0.13)

              rcollet@redhat.com Remi Collet
              bstcom Ryuichi Yoshida (Inactive)
              Remi Collet Remi Collet
              rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe rhel-cs-infra-services-qe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: