[wp-hackers] Memory Space Changed Simultaneously
Computer Guru
computerguru at neosmart.net
Mon Dec 11 16:12:33 GMT 2006
Thanks for the reply,
Auto-prepend is an option is php.ini that allows you to "auto-include" any
file of your choice to _every single_ php file served.
I use this feature to include a quickie-script that fixes the value of
$_SERVER['REQUEST_URI'] on IIS servers to be exactly like that on LAMP -
it's LGPL'd code.
I wrote about it before here: http://neosmart.net/blog/?p=291
Anyway, the code is very clean and bug-free (it's virtually hello-world
easy), and only under times of really heavy load, I get that error with
reference to the auto-include .inc file. The only thing I can think of is
that it's a memory-sharing/access write violation, because afterwards PHP
dies (it keeps giving that error), until IIS is restarted.
Computer Guru
NeoSmart Technologies
http://neosmart.net/blog/
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com [mailto:wp-hackers-
> bounces at lists.automattic.com] On Behalf Of John Joseph Bachir
> Sent: Monday, December 11, 2006 7:46 AM
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] Memory Space Changed Simultaneously
>
>
>
> On Sun, 10 Dec 2006, Computer Guru wrote:
>
> > What happens in PHP if a single address in memory attempts to be
> changed
> > at the very same exact time/cycle?
>
> This is (or shold be) impossible. PHP and the core libraries are
> threadsafe, so unless you are using the shared memory facilities or
> spawning threads without semaphoring your resources, I'm not sure what
> could be causing the problem.
>
>
> > I have a problem with an auto-prepended file, it's the request_uri
> fix I
> > developed for WP users earlier, and it attempts to write to the
> global
> > $SERVER_[REQUEST_URI]
> >
> > Since it's an auto-prepend file, the likelihood of simultaneous
> access
> > is very high, and under load I see this error:
> >
> > Error using $this when it's not a context
>
> I guess this is what is causing your problem, but I don't know what you
> are referring to :) could you elaborate? What does auto-prepend mean?
>
> John
> ----
> aim/yim/msn/jabber.org: johnjosephbachir
> 713.494.2704
> irc://irc.freenode.net/lyceum
> http://lyceum.ibiblio.org/
> http://blog.johnjosephbachir.org/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
More information about the wp-hackers
mailing list