]> granicus.if.org Git - php/commitdiff
should be a strcmp, not a strncmp, thanks, wez
authorGeorge Schlossnagle <gschlossnagle@php.net>
Tue, 18 May 2004 20:57:19 +0000 (20:57 +0000)
committerGeorge Schlossnagle <gschlossnagle@php.net>
Tue, 18 May 2004 20:57:19 +0000 (20:57 +0000)
ext/pdo/pdo_stmt.c

index 02786ac1d7c2e1f5b4583d98744afb7125c603e8..ac98658dff349cf5855adbd94fac6c22ee9fa873 100755 (executable)
@@ -532,7 +532,7 @@ static zval *dbstmt_prop_read(zval *object, zval *member, int type TSRMLS_DC)
 
        convert_to_string(member);
 
-       if(strncmp(Z_STRVAL_P(member), "queryString", sizeof("queryString")) == 0) {
+       if(strcmp(Z_STRVAL_P(member), "queryString")) == 0) {
                MAKE_STD_ZVAL(return_value);
                ZVAL_STRINGL(return_value, stmt->query_string, stmt->query_stringlen, 1);
        }