[PRES] [web-pres2] dericks-renderer: Fixed PHP-4ism where it was common (but still wrong) to pass arrays by reference
[email protected] (Derick Rethans) Thu, 29 May 2025 13:34:27 +0000
| Newsgroups | php.pres |
|---|---|
| Message-ID | <[email protected]> |
Author: Derick Rethans (derickr)
Date: 2025-05-29T14:22:50+01:00
Commit: https://github.com/php/web-pres2/commit/26c8c6f3527541bf4ec9553f799c8d3364d5b24e
Raw diff: https://github.com/php/web-pres2/commit/26c8c6f3527541bf4ec9553f799c8d3364d5b24e.diff
Fixed PHP-4ism where it was common (but still wrong) to pass arrays by reference
Changed paths:
M XML_Presentation.php
M XML_Slide.php
Diff:
diff --git a/XML_Presentation.php b/XML_Presentation.php
index 288adb0..e04e23b 100644
--- a/XML_Presentation.php
+++ b/XML_Presentation.php
@@ -106,7 +106,7 @@ function XML_Presentation($handle = '')
* @param array Attributes of XML tag
* @return void
*/
- function startHandler($parser, $element, &$attribs)
+ function startHandler($parser, $element, $attribs)
{
switch ($element) {
/* These tags can have other tags inside */
diff --git a/XML_Slide.php b/XML_Slide.php
index 42fa380..a427b89 100644
--- a/XML_Slide.php
+++ b/XML_Slide.php
@@ -98,7 +98,7 @@ function XML_Slide($handle = '')
* @param array Attributes of XML tag
* @return void
*/
- function startHandler($parser, $element, &$attribs)
+ function startHandler($parser, $element, $attribs)
{
switch ($element) {
/* These tags can have other tags inside */