ID:               47766
 Updated by:       [email protected]
 Reported By:      ipseno at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         CGI related
 Operating System: Win XP SP3
 PHP Version:      5.3CVS-2009-03-24 (snap)
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

And how we suppose to know what you are doing then?

You can try to create a backtrace, maybe there is an obvious problem
which can be seen in it.




Previous Comments:
------------------------------------------------------------------------

[2009-03-25 00:34:01] ipseno at yahoo dot com

Script has 145 lines of code and loads 5 custom classes and 3 extra
files.

What you propose is, as I've just found, most likely impossible.
Reason is that crash won't appear if I remove ANYTHING from script.

At one line I removed COMMENT!
// From DB....

Which doesn't affect PHP's code in ANY way.
To my shock everythhing restored to normal.

Exactly this fact makes me unable to ISOLATE few lines of code for
crash reproduction.

------------------------------------------------------------------------

[2009-03-24 23:58:25] [email protected]

Create the smallest possible script to reproduce the problem and post
it here.

------------------------------------------------------------------------

[2009-03-24 23:42:33] ipseno at yahoo dot com

I..., m..., well.
Hmmmmm...!?

This script uses custom classes that I've built and needs to be
loaded.

Anyway... I've found out, that crash occurs in LAST line of code before
PHP's closing tag ?>


new face($cont);


There are 2 ways od avoiding crash.
a) By commenting out // new face($cont);
b) By making string $cont supplied to class face shorter then 2232
letters

I can not just post / give you all code, as this script is being built
for financial biz. So it is a secret.

Crash occurs inside object of 'face' class.

What do you propose?

------------------------------------------------------------------------

[2009-03-24 23:18:46] [email protected]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



------------------------------------------------------------------------

[2009-03-24 23:15:19] ipseno at yahoo dot com

Ok, I've parsed it with:
VC9 x86 Non Thread Safe (2009-Mar-24 15:00:00)

    * Zip [12.73MB]
      sha1: 9c94f8a7cdc73c22da8c66e6af16ade4ceb4d197 

Result:
CGI / FastCGI has encountered a problem and needs to close.  We are
sorry for the inconvenience.


This means same thing is happening.

Only one line of code is responsible for it.
Commenting it out, makes no crash at all.

Line of code is:

$temp .= $site->p('You will receive ' . $amount . ' ' . $mon . ' to ' .
$dc . ' account with number ' . $acc, array('class'=>'phys_wide
face_green') );

HINT:
When I "shothened"(removed letters), first or second arg of 'p' method
it worked!

Like:
$temp .= $site->p('You will receive ' . $amount . ' ' . $mon . ' to ' .
$dc . ' account number ' . $acc, array('class'=>'phys_wide face_green')
);
Works without crash!

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/47766

-- 
Edit this bug report at http://bugs.php.net/?id=47766&edit=1

Reply via email to