Utilize zend_array_is_list() in php_phongo_is_array_or_document()

XMLWordPrintableJSON

    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      php_phongo_is_array_or_document() iterates through array keys to differentiate between list and associative arrays.

      PHP 8.1 introduced a zend_array_is_list() function (php/php-src#6070), which has several performance improvements. We should consider using that function (backporting if necessary) or incorporating some its optimizations.

            Assignee:
            Pauline Vos
            Reporter:
            Jeremy Mikola (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: