You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/dbase/dbf_rec.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,7 @@ void pack_dbf(dbhead_t *dbh)
136
136
137
137
/* Try to truncate the file to the right size. */
138
138
if (ftruncate(dbh->db_fd, out_off) !=0) {
139
-
php_error(E_WARNING, "dbase_pack() couldn't truncate the file to the right size. Some deleted records may still be left in there.");
139
+
php_error_docref(NULLTSRMLS_CC, E_WARNING, "dbase_pack() couldn't truncate the file to the right size. Some deleted records may still be left in there.");
php_error(E_WARNING, "Ingres II: php_ii_field_name() called with wrong index (%d)", index);
965
+
php_error_docref(NULLTSRMLS_CC, E_WARNING, "Ingres II: php_ii_field_name() called with wrong index (%d)", index);
964
966
returnNULL;
965
967
}
966
968
@@ -1115,7 +1117,7 @@ static void php_ii_fetch(INTERNAL_FUNCTION_PARAMETERS, II_LINK *ii_link, int res
1115
1117
if (more) { /* more segments of LBYTE or LVCH element to come */
1116
1118
1117
1119
/* Multi segment LBYTE and LVCH elements not supported yet */
1118
-
php_error(E_ERROR, "Ingres II: Multi segment LBYTE and LVCH elements not supported yet");
1120
+
php_error_docref(NULLTSRMLS_CC, E_ERROR, "Ingres II: Multi segment LBYTE and LVCH elements not supported yet");
1119
1121
1120
1122
} else {
1121
1123
@@ -1152,7 +1154,7 @@ static void php_ii_fetch(INTERNAL_FUNCTION_PARAMETERS, II_LINK *ii_link, int res
1152
1154
break;
1153
1155
1154
1156
default:
1155
-
php_error(E_WARNING, "Ingres II: Invalid size for IIAPI_FLT_TYPE data (%d)", columnData[k-1].dv_length);
1157
+
php_error_docref(NULLTSRMLS_CC, E_WARNING, "Ingres II: Invalid size for IIAPI_FLT_TYPE data (%d)", columnData[k-1].dv_length);
1156
1158
break;
1157
1159
}
1158
1160
@@ -1181,7 +1183,7 @@ static void php_ii_fetch(INTERNAL_FUNCTION_PARAMETERS, II_LINK *ii_link, int res
1181
1183
break;
1182
1184
1183
1185
default:
1184
-
php_error(E_WARNING, "Ingres II: Invalid size for IIAPI_INT_TYPE data (%d)", columnData[k-1].dv_length);
1186
+
php_error_docref(NULLTSRMLS_CC, E_WARNING, "Ingres II: Invalid size for IIAPI_INT_TYPE data (%d)", columnData[k-1].dv_length);
1185
1187
break;
1186
1188
}
1187
1189
@@ -1242,7 +1244,7 @@ static void php_ii_fetch(INTERNAL_FUNCTION_PARAMETERS, II_LINK *ii_link, int res
1242
1244
break;
1243
1245
1244
1246
default:
1245
-
php_error(E_WARNING, "Ingres II: Invalid SQL data type in fetched field (%d -- length : %d)", (ii_link->descriptor[i+k-2]).ds_dataType, columnData[k-1].dv_length);
1247
+
php_error_docref(NULLTSRMLS_CC, E_WARNING, "Ingres II: Invalid SQL data type in fetched field (%d -- length : %d)", (ii_link->descriptor[i+k-2]).ds_dataType, columnData[k-1].dv_length);
0 commit comments