Bug #69532 [NEW]: array_multisort is chocking when using it's own constants
| From: | deivid dot garcia dot garcia at gmail dot com | Date: | Sat, 25 Apr 2015 14:40:37 +0000 |
| Subject: | Bug #69532 [NEW]: array_multisort is chocking when using it's own constants | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-192336@lists.php.net to get a copy of this message | ||
From: deivid dot garcia dot garcia at gmail dot com
Operating system: Windows 8.1
PHP version: master-Git-2015-04-25 (snap)
Package: *General Issues
Bug Type: Bug
Bug description:array_multisort is chocking when using it's own constants
Description:
------------
array_multisort is chocking when using it's own constants:
EngineException: Cannot pass parameter 4 by reference in
Drupal\Core\Extension\ExtensionDiscovery->sort() (line 321 of D:\DRUPAL
OFICIAL\drupal\core\lib\Drupal\Core\Extension\ExtensionDiscovery.php).
array_multisort($origins, SORT_ASC, $profiles, SORT_ASC, $all_files);
It get's solved by using variables:
$p = SORT_ASC;
array_multisort($origins, $p, $profiles, $p, $all_files);
Test script:
---------------
<?php
$origins = array();
$profiles = array();
$all_files = array();
array_multisort($origins, SORT_ASC, $profiles, SORT_ASC, $all_files);
--
Edit bug report at https://bugs.php.net/bug.php?id=69532&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69532&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69532&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69532&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69532&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69532&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69532&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69532&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69532&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69532&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69532&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69532&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69532&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69532&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69532&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69532&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69532&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69532&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69532&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69532&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69532&r=mysqlcfg