svn: /php/php-src/trunk/ext/pdo/ pdo_stmt.c
| From: | Felipe Pena | Date: | Mon, 12 Oct 2009 17:20:30 +0000 |
| Subject: | svn: /php/php-src/trunk/ext/pdo/ pdo_stmt.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60672@lists.php.net to get a copy of this message | ||
felipe Mon, 12 Oct 2009 17:20:30 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=289582
Log:
- Fixed class name in row_get_classname (PDORow)
Changed paths:
U php/php-src/trunk/ext/pdo/pdo_stmt.c
Modified: php/php-src/trunk/ext/pdo/pdo_stmt.c
===================================================================
--- php/php-src/trunk/ext/pdo/pdo_stmt.c 2009-10-12 17:09:11 UTC (rev 289581)
+++ php/php-src/trunk/ext/pdo/pdo_stmt.c 2009-10-12 17:20:30 UTC (rev 289582)
@@ -2796,7 +2796,7 @@
int namelen = sizeof("__construct");
ctor.type = ZEND_INTERNAL_FUNCTION;
- ctor.function_name.u = malloc(UBYTES(namelen));
+ ctor.function_name.u = emalloc(UBYTES(namelen));
u_charsToUChars("__construct", ctor.function_name.u, namelen);
ctor.scope = pdo_row_ce;
@@ -2815,8 +2815,10 @@
if (parent) {
return FAILURE;
} else {
- *class_name = ezstrndup(IS_UNICODE, ZSTR("PDORow"), sizeof("PDORow") - 1);
- *class_name_len = sizeof("PDORow")-1;
+ int namelen = sizeof("PDORow");
+
+ (*class_name).u = emalloc(UBYTES(namelen));
+ u_charsToUChars("PDORow", (*class_name).u, namelen);
return SUCCESS;
}
}