Bug #68422 [NEW]: Incorrect argument reflection info for array_multisort()

From: Date: Fri, 14 Nov 2014 12:39:05 +0000
Subject: Bug #68422 [NEW]: Incorrect argument reflection info for array_multisort()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188597@lists.php.net to get a copy of this message
From:             lisachenko dot it at gmail dot com
Operating system: 
PHP version:      master-Git-2014-11-14 (Git)
Package:          Reflection related
Bug Type:         Bug
Bug description:Incorrect argument reflection info for array_multisort()

Description:
------------
PHP7 requires that argument names should be unique. array_multisort
ARG_INFO is invalid, because it contains duplicate names for arguments.

Also, http://php.net/manual/en/function.array-multisort.php
declares the
signature as the following:

bool array_multisort ( array &$array1 [, mixed $array1_sort_order =
SORT_ASC [, mixed $array1_sort_flags = SORT_REGULAR [, mixed $... ]]] )

Test script:
---------------
php --rf array_multisort

Expected result:
----------------
Function [ <internal:standard> function array_multisort ] {

  - Parameters [7] {
    Parameter #0 [ <required> &$arr1 ]
    Parameter #1 [ <optional> &$sort_order ]
    Parameter #2 [ <optional> &$sort_flags ]
    Parameter #3 [ <optional> &...$arr2 ]
  }
}

Actual result:
--------------
Function [ <internal:standard> function array_multisort ] {

  - Parameters [7] {
    Parameter #0 [ <required> &$arr1 ]
    Parameter #1 [ <optional> &$SORT_ASC_or_SORT_DESC ]
    Parameter #2 [ <optional>
&$SORT_REGULAR_or_SORT_NUMERIC_or_SORT_STRING ]
    Parameter #3 [ <optional> &$arr2 ]
    Parameter #4 [ <optional> &$SORT_ASC_or_SORT_DESC ]
    Parameter #5 [ <optional>
&$SORT_REGULAR_or_SORT_NUMERIC_or_SORT_STRING ]
    Parameter #6 [ <optional> &...$more_array_and_sort_options ]
  }
}

-- 
Edit bug report at https://bugs.php.net/bug.php?id=68422&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=68422&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=68422&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=68422&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=68422&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=68422&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=68422&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=68422&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=68422&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=68422&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=68422&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=68422&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=68422&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=68422&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68422&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=68422&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=68422&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=68422&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68422&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=68422&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=68422&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#188597) next »