|
From: <var...@us...> - 2021-06-28 09:25:09
|
Revision: 10328
http://sourceforge.net/p/phpwiki/code/10328
Author: vargenau
Date: 2021-06-28 09:25:09 +0000 (Mon, 28 Jun 2021)
Log Message:
-----------
php7:notice PHP Deprecated: Array and string offset access syntax with curly braces is deprecated
Modified Paths:
--------------
trunk/lib/ASCIIMathPHP/ASCIIMathPHP.class.php
trunk/lib/plugin/text2png.php
Modified: trunk/lib/ASCIIMathPHP/ASCIIMathPHP.class.php
===================================================================
--- trunk/lib/ASCIIMathPHP/ASCIIMathPHP.class.php 2021-06-28 07:37:34 UTC (rev 10327)
+++ trunk/lib/ASCIIMathPHP/ASCIIMathPHP.class.php 2021-06-28 09:25:09 UTC (rev 10328)
@@ -880,7 +880,7 @@
return($node_1);
} elseif (isset($sym['func'])) { //added 2006-9-7 David Lippman
$expr = ltrim($this->getCurrExpr());
- $st = $expr{0};
+ $st = $expr[0];
$node_0 = $this->parseSmplExpr();
//$node_0->removeBrackets();
if ($st=='^' || $st == '_' || $st=='/' || $st=='|' || $st==',') {
@@ -905,7 +905,7 @@
$end_brckt = '"';
$txt = substr($expr,0,strpos($expr,$end_brckt));
} else {
- switch($expr{0}) {
+ switch($expr[0]) {
case '(':
$end_brckt = ')';
break;
@@ -929,7 +929,7 @@
$node_0->setName('mrow');
if ($len > 0) {
- if ($txt{0} == " ") {
+ if ($txt[0] == " ") {
$node_1 = $this->createNode();
$node_1->setName('mspace');
$node_1->setAttr('width','1ex');
@@ -943,7 +943,7 @@
$node_0->addChild($node_3);
- if ($len > 1 && $txt{$len-1} == " ") {
+ if ($len > 1 && $txt[$len-1] == " ") {
$node_2 = $this->createNode();
$node_2->setName('mspace');
$node_2->setAttr('width','1ex');
Modified: trunk/lib/plugin/text2png.php
===================================================================
--- trunk/lib/plugin/text2png.php 2021-06-28 07:37:34 UTC (rev 10327)
+++ trunk/lib/plugin/text2png.php 2021-06-28 09:25:09 UTC (rev 10328)
@@ -102,7 +102,7 @@
if ($h[0] != '#') return $default;
$rgb = substr($h, 1);
if (strlen($rgb) == 3)
- return array(hexdec($rgb{0}), hexdec($rgb{1}), hexdec($rgb{2}));
+ return array(hexdec($rgb[0]), hexdec($rgb[1]), hexdec($rgb[2]));
elseif (strlen($rgb) == 6)
return array(hexdec(substr($rgb, 0, 2)), hexdec(substr($rgb, 2, 2)), hexdec(substr($rgb, 4, 2)));
return $default;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|