summaryrefslogtreecommitdiff
path: root/ext/soap/php_sdl.c
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2006-04-17 16:08:08 +0000
committerAndrei Zmievski <andrei@php.net>2006-04-17 16:08:08 +0000
commitcfaf6406d705abde425661919a73ef4a24b72e24 (patch)
treee3228595bbee2f2d48c5b881cd3025b6b6669098 /ext/soap/php_sdl.c
parent7330c32329a49526eac48d7a48751340322236ff (diff)
downloadphp-git-cfaf6406d705abde425661919a73ef4a24b72e24.tar.gz
Some encodings were assumed to be default and, thus, were not made
persistent.
Diffstat (limited to 'ext/soap/php_sdl.c')
-rw-r--r--ext/soap/php_sdl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c
index b239b9a9e7..ba7fa5ad57 100644
--- a/ext/soap/php_sdl.c
+++ b/ext/soap/php_sdl.c
@@ -2292,7 +2292,7 @@ static void make_persistent_sdl_type_ref(sdlTypePtr *type, HashTable *ptr_map, H
{
sdlTypePtr *tmp;
- if (zend_hash_find(ptr_map, (char *)(*type), sizeof(sdlTypePtr), (void**)&tmp) == SUCCESS) {
+ if (zend_hash_find(ptr_map, (char *)type, sizeof(sdlTypePtr), (void**)&tmp) == SUCCESS) {
*type = *tmp;
} else {
zend_hash_next_index_insert(bp_types, (void*)&type, sizeof(sdlTypePtr*), NULL);
@@ -2305,11 +2305,11 @@ static void make_persistent_sdl_encoder_ref(encodePtr *enc, HashTable *ptr_map,
encodePtr *tmp;
/* do not process defaultEncoding's here */
- if ((*enc)->details.sdl_type == NULL) {
+ if ((*enc) >= defaultEncoding && (*enc) < defaultEncoding + numDefaultEncodings) {
return;
}
- if (zend_hash_find(ptr_map, (char *)(*enc), sizeof(encodePtr), (void**)&tmp) == SUCCESS) {
+ if (zend_hash_find(ptr_map, (char *)enc, sizeof(encodePtr), (void**)&tmp) == SUCCESS) {
*enc = *tmp;
} else {
zend_hash_next_index_insert(bp_encoders, (void*)&enc, sizeof(encodePtr*), NULL);
@@ -2513,7 +2513,7 @@ static sdlAttributePtr make_persistent_sdl_attribute(sdlAttributePtr attr, HashT
}
/* we do not want to process defaultEncoding's here */
- if (pattr->encode && pattr->encode->details.sdl_type) {
+ if (pattr->encode) {
make_persistent_sdl_encoder_ref(&pattr->encode, ptr_map, bp_encoders);
}
@@ -2625,7 +2625,7 @@ static sdlTypePtr make_persistent_sdl_type(sdlTypePtr type, HashTable *ptr_map,
}
/* we do not want to process defaultEncoding's here */
- if (ptype->encode && ptype->encode->details.sdl_type) {
+ if (ptype->encode) {
make_persistent_sdl_encoder_ref(&ptype->encode, ptr_map, bp_encoders);
}