...
Hi,
the following code fails if shared library is loaded with dl()
...
PHP_MINIT_FUNCTION(phpmkkernel)
{
#if defined(ZTS) && defined(COMPILE_DL_PHPMKKERNEL)
-a ZEND_TSRMLS_CACHE_UPDATE();
#endif
#if defined(ZTS)
...
#endif
-a /* If you have INI entries, uncomment these lines
-a REGISTER_INI_ENTRIES();
-a */
-a return LibMkKernel_MInit-a-a-a-a (INIT_FUNC_ARGS_PASSTHRU)-a ;
}
static ZEND_RESULT_CODE LibMkKernel_MInit (INIT_FUNC_ARGS) {
...
-a MK(MkErrorE) = zend_register_internal_enum("PhpMsgque\\MkKernel\\MkErrorE", IS_LONG,
NULL);
-a zend_enum_add_case_cstr(MK(MkErrorE), "OK", OT_TMP_INT_OBJ(0));
-a zend_enum_add_case_cstr(MK(MkErrorE), "CONTINUE", OT_TMP_INT_OBJ(1));
-a zend_enum_add_case_cstr(MK(MkErrorE), "ERROR", OT_TMP_INT_OBJ(2));
...
-a return SUCCESS;
}
<<<<<
the problem is an assert in create_enum_case_ast
-a-a ZEND_ASSERT(ZSTR_IS_INTERNED(class_name));
if shared library is loaded with "extension" in php.ini than it is fine
-a-a extension="..."
question: what I have to do ?
mfg ao
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 01:41:27 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
10 files (20,373K bytes) |
| Messages: | 264,188 |