FAQ
Just curious, why did you choose to mutex around a hash instead of
using the zend_ts_hash functions?

Changing the access semantics while preserving the type and name of
that variable will cause any external modules that are unaware of that
change to subtly break, or if you're lucky, crash hard.

Seems "better" to make that break a little bit more obvious by
changing the name, or introducing an API to encapsulate the correct
access semantics.

These are just suggestions. My main comments are that the locking
macros are mildly ugly and that a lack of compile time enforcement on
the new locking requirement will cause people pain with modules
outside of the main php distribution.

--Wez.


On 3/5/07, Michael Vergoz wrote:
Hello,

I made a patch that "mutex'ed" module_registry and module_count.
For the moment it doesn't solve the dl().

The patch for last CVS PHP_5_2
http://mykii.binarysec.com/PHP/module_registry_mutex/module_register_mutex.patch

Small description :
http://mykii.binarysec.com/PHP/module_registry_mutex/readme.txt

Regards,
Michael Vergoz

----- Original Message -----
From: "Richard Lynch" <ceo@l-i-e.com>
To: "Michael Vergoz" <mv@binarysec.com>
Cc: <internals@lists.php.net>
Sent: Thursday, March 01, 2007 11:06 PM
Subject: Re: [PHP-DEV] Thread safe problem on module_registry (Zend API
Feature/Change request)

On Thu, March 1, 2007 7:29 am, Michael Vergoz wrote:

I don't claim to understand this issue fully/deeply, but I'm
definitely +1 on resurrecting 'dl' if this change fixes everything to
everyone's satisfaction.

Not that my vote actually counts, as I've never had the skills/time to
actually contribute C code to PHP.

I may be the only user on the planet with a shared host that lets me
use 'dl' to pull in extensions, but there it is, and I kinda need it,
as there are no other viable options to do what I need to do, other
than changing to a new webhost I might not like... :-)

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 6 | next ›
Discussion Overview
groupphp-internals @
categoriesphp
postedMar 1, '07 at 1:45p
activeMar 7, '07 at 7:46a
posts6
users4
websitephp.net

People

Translate

site design / logo © 2022 Grokbase