From quanta Sun Aug 05 17:11:13 2007 From: John Hicks Date: Sun, 05 Aug 2007 17:11:13 +0000 To: quanta Subject: Re: [Quanta] Problem with digits > 08 (was < 08) Message-Id: <46B604B1.70105 () gulfbridge ! net> X-MARC-Message: https://marc.info/?l=quanta&m=118633523301995 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0138824570==" This is a multi-part message in MIME format. --===============0138824570== Content-Type: multipart/alternative; boundary="------------070006030004040206080106" This is a multi-part message in MIME format. --------------070006030004040206080106 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Silviu Candale wrote: > It's happening because integers starting with 0 are threated like > octal numbers. > See http://www.phpbuilder.com/manual/en/language.types.integer.php for > more > > ----- Original Message ---- > From: Michael Calwell > To: quanta@mail.kde.org > Sent: Sunday, August 5, 2007 4:12:04 PM > Subject: [Quanta] Problem with digits < 08 > > Dear All, > > I have been a happy Quanta user for years. I use Quanta via fish to my > server, which has been migrated to RHEL5/PHP5. Something strange is > happening in the IDE which is actually affecting the server. I have no > idea what it is, but I will try to describe it. > > In the ide, if I type in integers beginning with the two digits as 00 > through to 07, they are highlighted in aquamarine (#00FFFF). The server > can see and use the integers in scripts and functions, and all is well. > > However, if I try to use integers beginning with 08 and 09, they are > highlighted in blue and the server cannot see and use them. > > It's baffling - how on earth syntax highlighting in an IDE can affect > what goes on on a server I would have thought impossible. Maybe it is, > and maybe it's something about PHP5 I haven't figured out. > > Can anybody shed light on this problem? > > _______________________________________________ > Quanta mailing list > Quanta@mail.kde.org > https://mail.kde.org/mailman/listinfo/quanta > > > ------------------------------------------------------------------------ > Got a little couch potato? > Check out fun summer activities for kids. > > > ------------------------------------------------------------------------ > > _______________________________________________ > Quanta mailing list > Quanta@mail.kde.org > https://mail.kde.org/mailman/listinfo/quanta > -- John Hicks When replying to me personally, please use "johnhicks" instead of "johnlist" in the email address. --------------070006030004040206080106 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Silviu Candale wrote:
It's happening because integers starting with 0 are threated like octal numbers.
See http://www.phpbuilder.com/manual/en/language.types.integer.php for more

----- Original Message ----
From: Michael Calwell <michael@calwell-computing.co.uk>
To: quanta@mail.kde.org
Sent: Sunday, August 5, 2007 4:12:04 PM
Subject: [Quanta] Problem with digits < 08

Dear All,

I have been a happy Quanta user for years. I use Quanta via fish to my
server, which has been migrated to RHEL5/PHP5. Something strange is
happening in the IDE which is actually affecting the server. I have no
idea what it is, but I will try to describe it.

In the ide, if I type in integers beginning with the two digits as 00
through to 07, they are highlighted in aquamarine (#00FFFF). The server
can see and use the integers in scripts and functions, and all is well.

However, if I try to use integers beginning with 08 and 09, they are
highlighted in blue and the server cannot see and use them.

It's baffling - how on earth syntax highlighting in an IDE can affect
what goes on on a server I would have thought impossible. Maybe it is,
and maybe it's something about PHP5 I haven't figured out.

Can anybody shed light on this problem?

_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta



Got a little couch potato?
Check out fun summer activities for kids.

_______________________________________________ Quanta mailing list Quanta@mail.kde.org https://mail.kde.org/mailman/listinfo/quanta


-- 
John Hicks

When replying to me personally, please use "johnhicks" instead of "johnlist" in the email address.
--------------070006030004040206080106-- --===============0138824570== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Quanta mailing list Quanta@mail.kde.org https://mail.kde.org/mailman/listinfo/quanta --===============0138824570==--