cvs: php4 /ext/dio dio.c
| From: | Jani Taskinen | Date: | Sun, 07 Jul 2002 00:54:38 +0000 |
| Subject: | cvs: php4 /ext/dio dio.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12734@lists.php.net to get a copy of this message | ||
sniper Sat Jul 6 20:54:38 2002 EDT
Modified files:
/php4/ext/dio dio.c
Log:
Fix the fix properly.
Index: php4/ext/dio/dio.c
diff -u php4/ext/dio/dio.c:1.13 php4/ext/dio/dio.c:1.14
--- php4/ext/dio/dio.c:1.13 Fri Jul 5 15:34:42 2002
+++ php4/ext/dio/dio.c Sat Jul 6 20:54:38 2002
@@ -328,28 +328,28 @@
}
if (Z_TYPE_P(arg) == IS_ARRAY) {
fh = HASH_OF(arg);
- if (zend_hash_find(fh, "start", 5, (void **) &element) == FAILURE) {
+ if (zend_hash_find(fh, "start", sizeof("start"), (void **) &element) ==
FAILURE) {
lk.l_start = 0;
}
else {
lk.l_start = Z_LVAL_PP(element);
}
- if (zend_hash_find(fh, "length", 6, (void **) &element) == FAILURE) {
+ if (zend_hash_find(fh, "length", sizeof("length"), (void **) &element)
== FAILURE) {
lk.l_len = 0;
}
else {
lk.l_len = Z_LVAL_PP(element);
}
- if (zend_hash_find(fh, "whence", 6, (void **) &element) == FAILURE) {
+ if (zend_hash_find(fh, "whence", sizeof("whence"), (void **) &element)
== FAILURE) {
lk.l_whence = 0;
}
else {
lk.l_whence = Z_LVAL_PP(element);
}
- if (zend_hash_find(fh, "type", 4, (void **) &element) == FAILURE) {
+ if (zend_hash_find(fh, "type", sizeof("type"), (void **) &element) ==
FAILURE) {
lk.l_type = 0;
}
else {