mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
restore the length var and fix the com_dotnet ini
This commit is contained in:
parent
88d7ca44f6
commit
481bf25b6a
2 changed files with 2 additions and 1 deletions
|
@ -272,7 +272,7 @@ static PHP_INI_MH(OnTypeLibFileUpdate)
|
||||||
char *strtok_buf = NULL;
|
char *strtok_buf = NULL;
|
||||||
int cached;
|
int cached;
|
||||||
|
|
||||||
if (!new_value || !new_value[0] || (typelib_file = VCWD_FOPEN(new_value, "r"))==NULL) {
|
if (NULL == new_value || !new_value->val[0] || (typelib_file = VCWD_FOPEN(new_value->val, "r"))==NULL) {
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -355,6 +355,7 @@ static void php_load_php_extension_cb(void *arg TSRMLS_DC)
|
||||||
static void php_load_zend_extension_cb(void *arg TSRMLS_DC)
|
static void php_load_zend_extension_cb(void *arg TSRMLS_DC)
|
||||||
{
|
{
|
||||||
char *filename = *((char **) arg);
|
char *filename = *((char **) arg);
|
||||||
|
const int length = strlen(filename);
|
||||||
|
|
||||||
if (IS_ABSOLUTE_PATH(filename, length)) {
|
if (IS_ABSOLUTE_PATH(filename, length)) {
|
||||||
zend_load_extension(filename TSRMLS_CC);
|
zend_load_extension(filename TSRMLS_CC);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue