cvs: php-src /win32 registry.c
| From: | Kalle Sommer Nielsen | Date: | Wed, 27 May 2009 01:36:46 +0000 |
| Subject: | cvs: php-src /win32 registry.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-58268@lists.php.net to get a copy of this message | ||
kalle Wed May 27 01:36:46 2009 UTC
Modified files:
/php-src/win32 registry.c
Log:
Nuke warnings
http://cvs.php.net/viewvc.cgi/php-src/win32/registry.c?r1=1.22&r2=1.23&diff_format=u
Index: php-src/win32/registry.c
diff -u php-src/win32/registry.c:1.22 php-src/win32/registry.c:1.23
--- php-src/win32/registry.c:1.22 Sun Oct 7 05:15:07 2007
+++ php-src/win32/registry.c Wed May 27 01:36:46 2009
@@ -92,7 +92,7 @@
if (ht) {
if (parent_ht) {
HashPosition pos;
- char *index;
+ zstr index;
uint index_len;
ulong num;
zval **data;
@@ -101,7 +101,7 @@
zend_hash_get_current_data_ex(parent_ht, (void**)&data, &pos) == SUCCESS
&&
zend_hash_get_current_key_ex(parent_ht, &index, &index_len, &num, 0,
&pos) == HASH_KEY_IS_STRING;
zend_hash_move_forward_ex(parent_ht, &pos)) {
- if (zend_hash_add(ht, index, index_len, data, sizeof(zval*), NULL) == SUCCESS) {
+ if (zend_hash_add(ht, index.s, index_len, data, sizeof(zval*), NULL) == SUCCESS) {
Z_ADDREF_PP(data);
}
}
@@ -238,7 +238,7 @@
if (zend_hash_find(PW32G(registry_directories), path, path_len+1, (void**)&pht) == SUCCESS) {
HashTable *ht = *pht;
HashPosition pos;
- char *index;
+ zstr index;
uint index_len;
ulong num;
zval **data;
@@ -247,7 +247,7 @@
zend_hash_get_current_data_ex(ht, (void**)&data, &pos) == SUCCESS &&
zend_hash_get_current_key_ex(ht, &index, &index_len, &num, 0, &pos) ==
HASH_KEY_IS_STRING;
zend_hash_move_forward_ex(ht, &pos)) {
- zend_alter_ini_entry(index, index_len, Z_STRVAL_PP(data), Z_STRLEN_PP(data), PHP_INI_SYSTEM,
PHP_INI_STAGE_ACTIVATE);
+ zend_alter_ini_entry(index.s, index_len, Z_STRVAL_PP(data), Z_STRLEN_PP(data), PHP_INI_SYSTEM,
PHP_INI_STAGE_ACTIVATE);
}
break;
}