Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1175936
D263.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Oct 5, 7:22 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Mon, Oct 6, 7:22 AM (17 h, 1 m)
Engine
blob
Format
Raw Data
Handle
762774
Attached To
D263: INP-1641 - PHP 7 compatibility issues (5.2.x)
D263.diff
View Options
Index: branches/5.2.x/core/kernel/managers/rewrite_url_processor.php
===================================================================
--- branches/5.2.x/core/kernel/managers/rewrite_url_processor.php
+++ branches/5.2.x/core/kernel/managers/rewrite_url_processor.php
@@ -551,7 +551,11 @@
}
// $listeners[1] - listener, used for parsing
- $listener_result = $listeners[1][0]->$listeners[1][1](REWRITE_MODE_PARSE, $prefix, $vars, $url_parts);
+ $listener_result = call_user_func_array(
+ $listeners[1],
+ array(REWRITE_MODE_PARSE, $prefix, &$vars, &$url_parts)
+ );
+
if ($listener_result === false) {
// will not proceed to other methods
return true;
@@ -1083,7 +1087,10 @@
$url_parts = Array ();
$listener = $this->rewriteListeners[$prefix][0];
- $ret = $listener[0]->$listener[1](REWRITE_MODE_BUILD, $prefix_special, $params, $url_parts, $pass_events);
+ $ret = call_user_func_array(
+ $listener,
+ array(REWRITE_MODE_BUILD, $prefix_special, &$params, &$url_parts, $pass_events)
+ );
return $ret;
}
Index: branches/5.2.x/core/kernel/utility/unit_config_reader.php
===================================================================
--- branches/5.2.x/core/kernel/utility/unit_config_reader.php
+++ branches/5.2.x/core/kernel/utility/unit_config_reader.php
@@ -1034,7 +1034,10 @@
$this->AfterConfigRead();
foreach ($this->configData as $prefix => $config_data) {
- $callback_function[0]->$callback_function[1]($prefix, $config_data, $params);
+ call_user_func_array(
+ $callback_function,
+ array($prefix, &$config_data, $params)
+ );
}
}
Event Timeline
Log In to Comment