Re: Request for Threads or SRM

From: Date: Fri, 25 Nov 2005 18:54:52 +0000
Subject: Re: Request for Threads or SRM
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-20423@lists.php.net to get a copy of this message
Can't you hack this together today in PHP? You just need runkit to register the superglobal. --Wez. On 11/25/05, Sara Golemon <pollita@php.net> wrote: > > No, but PHP could provide a standardized frontend in the form of a > > super-global that can have modular backends (like we have with > > ext/session). One backend could then use memcached as its data store. > > > Funny, I've been thinking of just the same thing.... The PHP5 OOP hooks are > just begging for that sort of implementation. > > $foo = $_APPLICTION['bar']; > > php_application_object::read_dimension(zval *element) { > zval *baz = fetch_from_storage_mechanism(element); > return baz; > } > > Things like references could never be supported of course. And the > userspace code would have to be intelligent enough to handle its own race > conditions. (The SHM backend would cover mutexes of course, but that still > doesn't solve the simpler problem of different requests handling different > bundles of data) > > Is anyone working on something like this already? > > -Sara > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.internals (#20423) next »