|
-
Dec 28th, 2004, 11:22 PM
#1
Thread Starter
Ex-Super Mod'rater
I hate these bugs...
I just spent a good half an hour (notice its 4:40am here) hunting down a bug which turned out to be a Capital Y instead of lower case y ....I couldn't figure out why my code kept returning the same result no matter whatt he input. But now I can see its cos I was using a variable that didn't exist and therefore my input was being ignored . BTW this is php so you needn't remind me of option explicit .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 28th, 2004, 11:27 PM
#2
Fanatic Member
Re: I hate these bugs...
You should've used option explicit anyway! =)
"X-mas is 24.Desember you English morons.." - NoteMe
-
Dec 28th, 2004, 11:39 PM
#3
Frenzied Member
Re: I hate these bugs...
All your bugs are belong to option explicit.
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Dec 28th, 2004, 11:41 PM
#4
Thread Starter
Ex-Super Mod'rater
Re: I hate these bugs...
 Originally Posted by dsheller
You should've used option explicit anyway! =)

I don't believe there is such a thing, especially when you can't even declare variables in it to begin with , it would be so good if you could have variable declaration in php though .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 28th, 2004, 11:47 PM
#5
Frenzied Member
Re: I hate these bugs...
you dont declare variables?
string[5] input;
thought php catered to the C syntax.
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Dec 28th, 2004, 11:55 PM
#6
Thread Starter
Ex-Super Mod'rater
Re: I hate these bugs...
yea it does, apart from the declarations part. if you want to use a variable you just treat it as if its already declared (as variant in VB), if it doesn't exist then it will be created for you.
So this would be valid:
PHP Code:
$i = "Hello World";
$i = 2;
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 29th, 2004, 12:04 AM
#7
Frenzied Member
Re: I hate these bugs...
eh. cool stuff.
I'll stick with html/flash
:::`DISCLAIMER`:::
Do NOT take anything i have posted to be truthful in any way, shape or form.
Thank You!
--------------------------------
"Never heard about "hiking" poles. I usualy just grab a stick from the nature, and use that as a pole." - NoteMe
"Finaly I can look as gay as I want..." - NoteMe
Languages: VB6, BASIC, Java, C#. C++
-
Dec 29th, 2004, 12:22 AM
#8
Fanatic Member
Re: I hate these bugs...
Yea, perl is the same way, they are much alike in fact!
"X-mas is 24.Desember you English morons.." - NoteMe
-
Dec 29th, 2004, 11:32 AM
#9
Re: I hate these bugs...
Stop using silly languages.
-
Dec 29th, 2004, 11:35 AM
#10
Fanatic Member
Re: I hate these bugs...
 Originally Posted by MartinLiss
Stop using silly languages.
Here's to us!
Who's like us?
Darned few, and they're all dead!
-
Dec 29th, 2004, 11:36 AM
#11
Re: I hate these bugs...
Write a program in VB to scan the PHP source and alert you to bad variable use - if it happens that often...
-
Dec 29th, 2004, 11:43 AM
#12
Thread Starter
Ex-Super Mod'rater
Re: I hate these bugs...
 Originally Posted by MartinLiss
Stop using silly languages.
:grh:

 Originally Posted by szlamany
Write a program in VB to scan the PHP source and alert you to bad variable use - if it happens that often...
Not really, just I couldn't believe how long it took me to find it.
They should make it like VB and case insensitive .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Dec 26th, 2005, 06:29 PM
#13
Re: I hate these bugs...
 Originally Posted by MartinLiss
Stop using silly languages.
Smite You
-
Dec 26th, 2005, 06:30 PM
#14
Re: I hate these bugs...
Btw, if you use turn Error Reporting to E_ALL or add E_NOTICE to the current error reporting setting, you will see a notice everytime you use an undefined variable.
-
Dec 26th, 2005, 06:32 PM
#15
Re: I hate these bugs...
visualAd - sees a bad post - dis'ing PHP...
steams and smokes for a year...
Then comes back fighting!
-
Dec 26th, 2005, 06:41 PM
#16
Re: I hate these bugs...
The perpetrator should be banned in my opinion.
-
Dec 26th, 2005, 06:45 PM
#17
Re: I hate these bugs...
What was the name of kedaman's silly language?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Dec 27th, 2005, 03:43 AM
#18
Re: I hate these bugs...
C#.NET
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|