helly Tue Jul 20 15:23:55 2004 EDT
Modified files:
/php-src/ext/standard dl.c
Log:
- Need to set handle prior to calling zend_register_module_ex()
(Marcus, Kamesh Jayachandran <kameshj at fastmail dot fm>)
http://cvs.php.net/diff.php/php-src/ext/standard/dl.c?r1=1.96&r2=1.97&ty=u
Index: php-src/ext/standard/dl.c
diff -u php-src/ext/standard/dl.c:1.96 php-src/ext/standard/dl.c:1.97
--- php-src/ext/standard/dl.c:1.96 Tue Jul 6 14:48:39 2004
+++ php-src/ext/standard/dl.c Tue Jul 20 15:23:55 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dl.c,v 1.96 2004/07/06 18:48:39 helly Exp $ */
+/* $Id: dl.c,v 1.97 2004/07/20 19:23:55 helly Exp $ */
#include "php.h"
#include "dl.h"
@@ -236,7 +236,8 @@
}
module_entry->type = type;
module_entry->module_number = zend_next_free_module();
-
+ module_entry->handle = handle;
+
if (zend_register_module_ex(module_entry TSRMLS_CC) == FAILURE) {
DL_UNLOAD(handle);
RETURN_FALSE;
@@ -250,8 +251,6 @@
}
}
- module_entry->handle = handle;
-
RETURN_TRUE;
}
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php