Permalink
Browse files

Disable handling of return value. This is broken on Win!?

  • Loading branch information...
1 parent aed2ed6 commit 93ce5b0befdef5cf4ffdae413f2f33181919b30c @johannes committed Aug 18, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 main.c
View
7 main.c
@@ -57,11 +57,16 @@ static void run_php(req_data *data TSRMLS_DC)
if (data->startup_script) {
pconn_do_request(data->startup_script, &user_data, &user_data_len TSRMLS_CC);
}
+
while (i--) {
int retval;
retval = pconn_do_request(data->main_script, &user_data, &user_data_len TSRMLS_CC);
- if (retval) {
+
+ if (retval == FAILURE) {
+#ifdef FIX_ME
+ /* On Windows I always reach this code path, dunno why */
break;
+#endif
}
}
if (data->shutdown_script) {

0 comments on commit 93ce5b0

Please sign in to comment.