Re: Help with corrupted defines [bug 11990]
| From: | Robin V. Stacey | Date: | Thu, 12 Jul 2001 17:38:29 +0000 |
| Subject: | Re: Help with corrupted defines [bug 11990] | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-59848@lists.php.net to get a copy of this message | ||
Hi again, Brian.
How does it run with Zend disabled?
If you can send the info, we'll try to assist ;-)
Cheers,
On Thu, Jul 12, 2001 at 10:32:06AM -0700, Brian Lalor wrote:
> Hey all. I haven't seen any further traffic on this issue (aside from
> myself, that is :-) ). At one point yesterday, we were seeing an
> approximate 5% failure rate; 5% of pages served had errors due to garbage
> for a define.
>
> I spent some time poking about the PHP and Zend source yesterday and was
> able to call a php_printf() whenever a constant was defined as a string.
> Yeah, big deal, I know, but I'm thinking of using that method to verify
> that what's going into the hash table is what I've put in the script.
>
> Is there a way to dump an arbitrary Zend hash table from a PHP script?
>
> I've tried stepping through the entire execution of a PHP script with GDB.
> Not a pretty thing, as I'm sure most of you know. I'm not able to
> determine even where the line
> define("FOO", "bar");
> is read from the file.
>
> Somewhere, the data for the defined constant is getting corrupted. I
> don't know enough about the Zend internals to checkpoint the data at
> various points to see if it matches what I expect. The other problem is
> that I can't reliably reproduce the error with a compact script or series
> of scripts, which is a major bummer for all involved.
>
> Would someone with the knowledge of the internals of PHP and Zend be
> willing to spend some time one-on-one with me any my team trying to get a
> solution to this?
>
> Thanks,
> B
>
> --
> Brian Lalor
> blalor@insight.com
> (v) 480-333-3196
> (f) 480-760-9298
>
--
| Robin V. Stacey Business Critical Web Applications available
| eCommerce & Finance Team Mentor @ http://www.myopenapps.com
| PlusNet Technologies Ltd
+ -------- Internet Access Solutions @ http://www.plus.net
-----------
Beauty, n.:
The power by which a woman charms a lover and terrifies a husband.
-- Ambrose Bierce