Re: Re: Bug #13243 Updated: Error when using 2D array
| From: | Gavin Sherry | Date: | Tue, 11 Sep 2001 09:47:25 +0000 |
| Subject: | Re: Re: Bug #13243 Updated: Error when using 2D array | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-65766@lists.php.net to get a copy of this message | ||
This is not related to arrays.
if(!isset($pokoj[1]["COLL"]){$pokoj[1]["COLL"] = 3;;
This line contains two syntax errors. Firstly, there is a missing ')'
closing the if() evaluation and there is a stray '{' after this.
Syntactically correct code would be as follows:
if(!isset($pokoj[1]["COLL"])) $pokoj[1]["COLL"] = 3;
In the future, please check your code thoroughly before submitting a bug
report. Also, when submitting an example script, please make them small,
dealing only with the problem you have.
Gavin
On Tue, 11 Sep 2001, Jiri.Vaja wrote:
> problem is on line 199
>
> --- Pùvodní dopis ----------------------------------------------------------
> Datum: 11.09.2001 08:12
> Od: Bug Database <php-dev@lists.php.net>
> Pro: jiri.vaja@transgasnet.cz
> Vìc: Bug #13243 Updated: Error when using 2D array
> ----------------------------------------------------------------------------
> >ID: 13243
> >Updated by: swm
> >Reported By: jiri.vaja@transgasnet.cz
> >Old Status: Open
> >Status: Feedback
> >Bug Type: Arrays related
> >Operating System: Windows 98 SE
> >PHP Version: 4.0.6
> >New Comment:
> >
> >I cannot recreate this on Unix systems. Could you please
> >give a short script, illustrating how the 2d array is being
> >manipulated.
> >
> >Previous Comments:
> >------------------------------------------------------------------------
> >
> >[2001-09-11 01:51:58] jiri.vaja@transgasnet.cz
> >
> >if (empty($pokoj[1][9])): ... this part of 2D array is realy empty. If I use 1D array,
> >everything is >OK, but i need 2D array. When Apache
> runing script with this row, Windows show error in module >PHP4TS.DLL.
> >
> >
> >
> >P.S. I'm sorry, but my english is not good.
> >
> >------------------------------------------------------------------------
> >
> >
> >
> >ATTENTION! Do NOT reply to this email!
> >To reply, use the web interface found at
> >http://bugs.php.net/?id=13243&edit=2
> >
> >
>