From 8790a4918cdad16c28a1319af807ca9afea74fb3 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Fri, 3 Sep 2010 22:24:08 +0000 Subject: [PATCH] This incorrect contraction started to get on my eyes after I saw it for the 87th time while struggling with an annoying SOAP service. --- ext/soap/php_encoding.c | 8 ++++---- ext/soap/php_packet_soap.c | 2 +- ext/soap/php_sdl.c | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c index 047734c2a5..869125aff6 100644 --- a/ext/soap/php_encoding.c +++ b/ext/soap/php_encoding.c @@ -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); diff --git a/ext/soap/php_packet_soap.c b/ext/soap/php_packet_soap.c index 74cf7bc69a..9d031f636b 100644 --- a/ext/soap/php_packet_soap.c +++ b/ext/soap/php_packet_soap.c @@ -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) { diff --git a/ext/soap/php_sdl.c b/ext/soap/php_sdl.c index 6bdb9e1294..93ea595195 100644 --- a/ext/soap/php_sdl.c +++ b/ext/soap/php_sdl.c @@ -373,7 +373,7 @@ static void load_wsdl_ex(zval *this_ptr, char *struri, sdlCtx *ctx, int include soap_error1(E_ERROR, "Parsing WSDL: '%s' already defined", name->children->content); } } else { - soap_error0(E_ERROR, "Parsing WSDL: hasn't name attribute"); + soap_error0(E_ERROR, "Parsing WSDL: 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: '%s' already defined", name->children->content); } } else { - soap_error0(E_ERROR, "Parsing WSDL: hasn't name attribute"); + soap_error0(E_ERROR, "Parsing WSDL: 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: '%s' already defined", name->children->content); } } else { - soap_error0(E_ERROR, "Parsing WSDL: hasn't name attribute"); + soap_error0(E_ERROR, "Parsing WSDL: 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: '%s' already defined", name->children->content); } } else { - soap_error0(E_ERROR, "Parsing WSDL: hasn't name attribute"); + soap_error0(E_ERROR, "Parsing WSDL: has no name attribute"); } } else if (!node_is_equal(trav,"documentation")) { soap_error1(E_ERROR, "Parsing WSDL: Unexpected WSDL element <%s>", trav->name); -- 2.40.0