Connecting Tech Pros Worldwide Help | Site Map

obscure bug related to size of script file?

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 01:09 AM
Ryan
Guest
 
Posts: n/a
Default obscure bug related to size of script file?

hi

i am having a problem with a php script i am trying to write.
the problem is that the ouput from the script (the html) was
sometimes being truncated, but sometimes it would work
as expected.

i managed to narrow the problem down (believe it or not) to
the difference between a sinle character anywhere in the script.

by this i mean, for example, when the php script was at 10,589 bytes
it worked perfectly. if i took one character out from anywhere in
the in the script (and i mean anywhere, changed a printf to a print,
or took a character from a php comment, or took a char from some
html outside the php scriplets, or changed a number from say 100 to 99)
it would fail!!!! and by fail i mean the result that was being received
by my browser was truncated about half way down the page (in the
middle of some html from the script!).

i am totally totally blown away by this obscure bug. has anyone
seen anything like it? maybe it is fixed in later versions of php?

the stuff i am running is:

PHP 4.3.3 (cgi) (built: Sep 1 2003 04:45:21)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies

RedHat Linux 7.x OS

Apache/1.3.27 Server


thanks

Ryan



  #2  
Old July 17th, 2005, 01:09 AM
Ryan
Guest
 
Posts: n/a
Default Re: obscure bug related to size of script file?

Ok, so i finally figured it out...

turns out it was a bug in the ftp client i was using to upload
that was truncating the script!!! must have been the sequence
of chars in the script not being escaped properly or something..

lol, what a pain!

Ryan

"Ryan" <ryan@someplace.com> wrote in message
news:3fb6faeb@news.comindico.com.au...[color=blue]
> hi
>
> i am having a problem with a php script i am trying to write.
> the problem is that the ouput from the script (the html) was
> sometimes being truncated, but sometimes it would work
> as expected.
>
> i managed to narrow the problem down (believe it or not) to
> the difference between a sinle character anywhere in the script.
>
> by this i mean, for example, when the php script was at 10,589 bytes
> it worked perfectly. if i took one character out from anywhere in
> the in the script (and i mean anywhere, changed a printf to a print,
> or took a character from a php comment, or took a char from some
> html outside the php scriplets, or changed a number from say 100 to 99)
> it would fail!!!! and by fail i mean the result that was being received
> by my browser was truncated about half way down the page (in the
> middle of some html from the script!).
>
> i am totally totally blown away by this obscure bug. has anyone
> seen anything like it? maybe it is fixed in later versions of php?
>
> the stuff i am running is:
>
> PHP 4.3.3 (cgi) (built: Sep 1 2003 04:45:21)
> Copyright (c) 1997-2003 The PHP Group
> Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
>
> RedHat Linux 7.x OS
>
> Apache/1.3.27 Server
>
>
> thanks
>
> Ryan
>
>[/color]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.