Hi group,
I have this very annoying problem during development: the linenumbers PHP
says contain a error/warning/notice are completely wrong.
When?
When I use includes and make a mistake.
WHat do I use?
The defaultbuild that came with redhat8.
PHP Version 4.2.2
(Information at the end of this message.)
This situation is very annoying because I have to search often very long
scripts to find a stupid ; or "
As far as I can tell this doesn't happen when I do not use includes...
Upgrading to another version (PHP5) is not an option. I had to set up this
version to mimic my serverconfiguration.
Can anybody help me?
Regards,
Erwin Moller
----------------------------------------
info about my PHP
-----------------------------------------------
PHP Version 4.2.2
System Linux daffy.perf.redhat.com 2.4.20-2.48smp #1 SMP Thu Feb 13 11:44:55
EST 2003 i686 i686 i386 GNU/Linux
Build Date Jun 19 2003 10:27:30
Configure Command './configure' '--host=i386-redhat-l
inux' '--build=i386-redhat-linux' '--target=i386-redhat-linux
-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=
/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=
/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr
/lib' '--libexecdir=/usr/libexec' '--localstatedir=
/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share
/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=
/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable
-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with
-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr
/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--wit
h-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-get
text' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=
/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=sy
stem' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout
=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-qu
otes' '--enable-safe-mode' '--enable-sockets' '--enable-sys
vsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-
vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-
oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap
-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=sh
ared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,
/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=sh
ared' '--enable-memory-limit' '--enable-bcmath' '--enable-s
hmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable
-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs'
Server API Apache 2.0 Filter 9 1710
On Wed, 12 May 2004 10:48:53 +0200, Erwin Moller
<si******************************************@spam yourself.com> wrote: Hi group,
I have this very annoying problem during development: the linenumbers PHP says contain a error/warning/notice are completely wrong.
When? When I use includes and make a mistake.
WHat do I use? The defaultbuild that came with redhat8. PHP Version 4.2.2 (Information at the end of this message.)
This situation is very annoying because I have to search often very long scripts to find a stupid ; or "
As far as I can tell this doesn't happen when I do not use includes...
Upgrading to another version (PHP5) is not an option. I had to set up this version to mimic my serverconfiguration.
Can anybody help me?
Regards, Erwin Moller
----------------------------------------
I am guessing here, but I used to find this. However, it didn't generally
happen when I had misplaced ; or " it was more with () {} which makes more
sense as these section off various bits of code, and PHP throws the line
number at the beginning of that section I think. I don't think it
necessarily happens only with includes though.
I don't get the problem any more though. either that is because I have
subconciously learnt not to do it, or it is for one of the following
reasons:
I now indent my code much more strictly, and keep everything to its own
line.
I now use PHP5 (I know this wasn't an option for you...)
I now run it under Windows (Again not an option).
Hopefully this may help you a little.
Harry
Erwin Moller <si******************************************@spam yourself.com> wrote in message news:<40*********************@news.xs4all.nl>... Hi group,
I have this very annoying problem during development: the linenumbers PHP says contain a error/warning/notice are completely wrong.
When? When I use includes and make a mistake.
<snip>
Hmm... Recently someone else also reported similar problem. But, it
doesn't happen to me as I'm using PHPEdit
<http://www.phpedit.net/products/PHPEdit/> (Now runs in Linux?) It has
a debugger, so if I click the "Run" it will point the cursor at the
exact line of the error and can easily trap the missing quotes or
parenthesis because of it's syntax highlight features.
--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
R. Rajesh Jeba Anbiah wrote: Erwin Moller <si******************************************@spam yourself.com> wrote in message news:<40*********************@news.xs4all.nl>... Hi group,
I have this very annoying problem during development: the linenumbers PHP says contain a error/warning/notice are completely wrong.
When? When I use includes and make a mistake.
<snip>
Hmm... Recently someone else also reported similar problem. But, it doesn't happen to me as I'm using PHPEdit <http://www.phpedit.net/products/PHPEdit/> (Now runs in Linux?) It has a debugger, so if I click the "Run" it will point the cursor at the exact line of the error and can easily trap the missing quotes or parenthesis because of it's syntax highlight features.
Hi,
Thanks for responding.
I use Eclipse with PHP-plugin.
But I don't think the problem is in the editor. The resulting .php file just
contains normal end-of-lines which should be reported correct by php.
I expect some bug in PHP error/warning/notice-reporting. :-(
Regards,
VFY
AJ wrote: On Wed, 12 May 2004 10:48:53 +0200, Erwin Moller <si******************************************@spam yourself.com> wrote:
Hi group,
I have this very annoying problem during development: the linenumbers PHP says contain a error/warning/notice are completely wrong.
When? When I use includes and make a mistake.
WHat do I use? The defaultbuild that came with redhat8. PHP Version 4.2.2 (Information at the end of this message.)
This situation is very annoying because I have to search often very long scripts to find a stupid ; or "
As far as I can tell this doesn't happen when I do not use includes...
Upgrading to another version (PHP5) is not an option. I had to set up this version to mimic my serverconfiguration.
Can anybody help me?
Regards, Erwin Moller
----------------------------------------
Hi Harry,
Thanks for your respons.
I am guessing here, but I used to find this. However, it didn't generally happen when I had misplaced ; or " it was more with () {} which makes more sense as these section off various bits of code, and PHP throws the line number at the beginning of that section I think. I don't think it necessarily happens only with includes though.
Erm, I am not sure I understand what you mean.
Everybody who codes PHP uses {} and () a lot.
How to circumvent excactly? What do you mean excactly? I don't get the problem any more though. either that is because I have subconciously learnt not to do it, or it is for one of the following reasons:
I now indent my code much more strictly, and keep everything to its own line.
I do that too. :-)
Just because it keeps my code readable.
I now use PHP5 (I know this wasn't an option for you...) I now run it under Windows (Again not an option).
Yes, I guess one of the above is the reason. Hopefully this may help you a little.
No, I am still stuck to my regret. :-(
But thanks for your response! Harry
Regards,
Erwin Moller
On Fri, 14 May 2004 10:48:39 +0200, Erwin Moller
<si******************************************@spam yourself.com> wrote: AJ wrote: I am guessing here, but I used to find this. However, it didn't generally happen when I had misplaced ; or " it was more with () {} which makes more sense as these section off various bits of code, and PHP throws the line number at the beginning of that section I think. I don't think it necessarily happens only with includes though.
Erm, I am not sure I understand what you mean. Everybody who codes PHP uses {} and () a lot. How to circumvent excactly? What do you mean excactly?
Take this code:
1: if ($this == $that) {
2: $that = $somethingelse;
3: $theother = $this;
4: }
5: else {
6: $this = $somethingelse;
7: $theother = $that;
8: }
If you were to misplace the semicolon at the end of line 2, the error
message, would say something about line 3. If you were to misplace the }
on line 4, it might report the error as being on line 1 (although probably
not in a simple case like this. but it is this sort of scenario that might
cause you problems...
I'm afraid I can't explain much better than that, because I am not certain
exactly what caused the problem.
H
AJ wrote: On Fri, 14 May 2004 10:48:39 +0200, Erwin Moller Erm, I am not sure I understand what you mean. Everybody who codes PHP uses {} and () a lot. How to circumvent excactly? What do you mean excactly?
Take this code:
1: if ($this == $that) { 2: $that = $somethingelse; 3: $theother = $this; 4: } 5: else { 6: $this = $somethingelse; 7: $theother = $that; 8: }
If you were to misplace the semicolon at the end of line 2, the error message, would say something about line 3. If you were to misplace the } on line 4, it might report the error as being on line 1 (although probably not in a simple case like this. but it is this sort of scenario that might cause you problems...
I'm afraid I can't explain much better than that, because I am not certain exactly what caused the problem.
H
Hi,
Aha, I understand what you mean. Misplaced ; can confuse PHP's
linenumbering.
I'll keep that in mind, allthough in my case PHP is more like 50 linenumbers
wrong. :-(
Thanks for your time and response!
Regards,
Erwin Moller
Erwin Moller <si******************************************@spam yourself.com> wrote in message news:<40*********************@news.xs4all.nl>...
<snip> Regards, VFY
VFY?? You mean verify? Just curious...
--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com
R. Rajesh Jeba Anbiah wrote: Erwin Moller <si******************************************@spam yourself.com> wrote in message news:<40*********************@news.xs4all.nl>... <snip> Regards, VFY
VFY?? You mean verify? Just curious...
Sorry, that VFY my nick somewhere else. (Utopia)
I shouldn't use it here.
Slip of my fingers. :-)
Regards,
Erwin Moller
Erwin Moller <si******************************************@spam yourself.com> wrote in message news:<40***********************@news.xs4all.nl>...
<snip> Sorry, that VFY my nick somewhere else. (Utopia) I shouldn't use it here. Slip of my fingers. :-)
Ok, no problem. Nice to know your nick :-)
--
| Just another PHP saint |
Email: rrjanbiah-at-Y!com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: lawrence |
last post by:
I'm not sure how this is normally done, on a large site, perhaps one
running Phorum. Occassionally a thread will have hundreds of entries,
perhaps a meg or two worth of data. You won't necessarily...
|
by: Phrylock |
last post by:
I am having problems getting my browser to show the parse errors that
I have. They worked before I swtiched global variabls to off (to
maintain some security), and now I can not get anything but a...
|
by: prasanna |
last post by:
i will be very thankful if you sent all the errors and warnings regarding
to the language C
thank you
|
by: Massimo Soricetti |
last post by:
Hello,
I'm not a C newbie, but I'm teaching C programming (well... FIRST
programming and then C) to other guys these days and it's driving me to
some reflexions on the language.
It's not...
|
by: Tin Gherdanarra |
last post by:
Hallo,
I'm trying to install pypgsql. However, I get syntax errors
while compiling the C sources. The following excerpt
from pgconnection.h looks a little funny to me:
typedef struct {...
|
by: dbuchanan |
last post by:
Hello,
>From time to time my vb2005 form disappears and is replaced by the
following errors. Rebuilding the application never helps. However the
errors never affects the operation of my...
|
by: pete142 |
last post by:
When I compile this code:
typedef unsigned char BYTE;
BYTE *
IpString(unsigned int ip)
{
static BYTE ipString;
ipString = (BYTE) 0xff & (ip >24);
ipString = (BYTE) 0xff & (ip >16);
|
by: guillaume.braux |
last post by:
Hello,
I am running WS2008 + IIS7 + FASTCGI + ZendCore.
I have not modified the default ZendCore php.ini configuration file.
Actualy, any kind of PHP error, warning or notice gives me...
|
by: samatair |
last post by:
Hi All,
I am working in an old website developed many years ago using PHP.
My job is to add some features and additions and bug fixing.
So far it's fine. Now the website faces the problem of ...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |