Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

cvs: ZendEngine2 / zend_API.c: msg#00029

php.cvs.zend

Subject: cvs: ZendEngine2 / zend_API.c

helly Tue May 18 17:19:15 2004 EDT

Modified files:
/ZendEngine2 zend_API.c
Log:
- Need to operate on module pointer in hash table


http://cvs.php.net/diff.php/ZendEngine2/zend_API.c?r1=1.254&r2=1.255&ty=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.254 ZendEngine2/zend_API.c:1.255
--- ZendEngine2/zend_API.c:1.254 Tue May 18 12:12:37 2004
+++ ZendEngine2/zend_API.c Tue May 18 17:19:15 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/

-/* $Id: zend_API.c,v 1.254 2004/05/18 16:12:37 stas Exp $ */
+/* $Id: zend_API.c,v 1.255 2004/05/18 21:19:15 helly Exp $ */

#include "zend.h"
#include "zend_execute.h"
@@ -1162,6 +1162,7 @@
{
int name_len;
char *lcname;
+ zend_module_entry *module_ptr;

if (!module) {
return FAILURE;
@@ -1173,12 +1174,13 @@
name_len = strlen(module->name);
lcname = zend_str_tolower_dup(module->name, name_len);

- if (zend_hash_add(&module_registry, lcname, name_len+1, (void *)module,
sizeof(zend_module_entry), NULL)==FAILURE) {
+ if (zend_hash_add(&module_registry, lcname, name_len+1, (void *)module,
sizeof(zend_module_entry), (void**)&module_ptr)==FAILURE) {
zend_error(E_CORE_WARNING, "Module '%s' already loaded",
module->name);
efree(lcname);
return FAILURE;
}
efree(lcname);
+ module = module_ptr;

if (module->functions && zend_register_functions(NULL,
module->functions, NULL, module->type TSRMLS_CC)==FAILURE) {
zend_error(E_CORE_WARNING,"%s: Unable to register functions,
unable to load", module->name);

--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation