]> granicus.if.org Git - php/commitdiff
This incorrect contraction started to get on my eyes after I saw it for the
authorRasmus Lerdorf <rasmus@php.net>
Fri, 3 Sep 2010 22:24:08 +0000 (22:24 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 3 Sep 2010 22:24:08 +0000 (22:24 +0000)
87th time while struggling with an annoying SOAP service.

ext/soap/php_encoding.c
ext/soap/php_packet_soap.c
ext/soap/php_sdl.c

index 047734c2a57dbc627f1d37f9ef652e71b847d71e..869125aff6d17d0dd3c935115ddca55d47c90821 100644 (file)
@@ -372,7 +372,7 @@ static xmlNodePtr master_to_xml_int(encodePtr encode, zval *data, int style, xml
                HashTable *ht = Z_OBJPROP_P(data);
 
                if (zend_hash_find(ht, "enc_type", sizeof("enc_type"), (void **)&ztype) == FAILURE) {
-                       soap_error0(E_ERROR, "Encoding: SoapVar hasn't 'enc_type' property");
+                       soap_error0(E_ERROR, "Encoding: SoapVar has no 'enc_type' property");
                }
 
                if (zend_hash_find(ht, "enc_stype", sizeof("enc_stype"), (void **)&zstype) == SUCCESS) {
@@ -1737,7 +1737,7 @@ static int model_to_xml_object(xmlNodePtr node, sdlContentModelPtr model, zval *
                                return 2;
                        } else {
                                if (strict) {
-                                       soap_error1(E_ERROR,  "Encoding: object hasn't '%s' property", model->u.element->name);
+                                       soap_error1(E_ERROR,  "Encoding: object has no '%s' property", model->u.element->name);
                                }
                                return 0;
                        }
@@ -1770,7 +1770,7 @@ static int model_to_xml_object(xmlNodePtr node, sdlContentModelPtr model, zval *
                                return 2;
                        } else {
                                if (strict) {
-                                       soap_error0(E_ERROR,  "Encoding: object hasn't 'any' property");
+                                       soap_error0(E_ERROR,  "Encoding: object has no 'any' property");
                                }
                                return 0;
                        }
@@ -3613,7 +3613,7 @@ static encodePtr get_array_type(xmlNodePtr node, zval *array, smart_str *type TS
                        zval **ztype;
 
                        if (zend_hash_find(Z_OBJPROP_PP(tmp), "enc_type", sizeof("enc_type"), (void **)&ztype) == FAILURE) {
-                               soap_error0(E_ERROR,  "Encoding: SoapVar hasn't 'enc_type' property");
+                               soap_error0(E_ERROR,  "Encoding: SoapVar has no 'enc_type' property");
                        }
                        cur_type = Z_LVAL_PP(ztype);
 
index 74cf7bc69a2fc2b9c507fa7cc493b3c43c22c4e5..9d031f636b855ba7a369272df50cc86fb907a274 100644 (file)
@@ -340,7 +340,7 @@ int parse_packet_soap(zval *this_ptr, char *buffer, int buffer_size, sdlFunction
                                }
                        }
                } else {
-                 /* Function hasn't WSDL description */
+                 /* Function has no WSDL description */
                        xmlNodePtr val;
                        val = resp->children;
                        while (val != NULL) {
index 6bdb9e12945c30f6c97d8cee0474427308d316ea..93ea595195cd582ecb39c541e041ea2239f77dc1 100644 (file)
@@ -373,7 +373,7 @@ static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include
                                        soap_error1(E_ERROR, "Parsing WSDL: <message> '%s' already defined", name->children->content);
                                }
                        } else {
-                               soap_error0(E_ERROR, "Parsing WSDL: <message> hasn't name attribute");
+                               soap_error0(E_ERROR, "Parsing WSDL: <message> has no name attribute");
                        }
 
                } else if (node_is_equal(trav,"portType")) {
@@ -383,7 +383,7 @@ static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include
                                        soap_error1(E_ERROR, "Parsing WSDL: <portType> '%s' already defined", name->children->content);
                                }
                        } else {
-                               soap_error0(E_ERROR, "Parsing WSDL: <portType> hasn't name attribute");
+                               soap_error0(E_ERROR, "Parsing WSDL: <portType> has no name attribute");
                        }
 
                } else if (node_is_equal(trav,"binding")) {
@@ -393,7 +393,7 @@ static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include
                                        soap_error1(E_ERROR, "Parsing WSDL: <binding> '%s' already defined", name->children->content);
                                }
                        } else {
-                               soap_error0(E_ERROR, "Parsing WSDL: <binding> hasn't name attribute");
+                               soap_error0(E_ERROR, "Parsing WSDL: <binding> has no name attribute");
                        }
 
                } else if (node_is_equal(trav,"service")) {
@@ -403,7 +403,7 @@ static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include
                                        soap_error1(E_ERROR, "Parsing WSDL: <service> '%s' already defined", name->children->content);
                                }
                        } else {
-                               soap_error0(E_ERROR, "Parsing WSDL: <service> hasn't name attribute");
+                               soap_error0(E_ERROR, "Parsing WSDL: <service> has no name attribute");
                        }
                } else if (!node_is_equal(trav,"documentation")) {
                        soap_error1(E_ERROR, "Parsing WSDL: Unexpected WSDL element <%s>", trav->name);