From: Bob D. <bd...@si...> - 2004-01-08 22:55:02
|
Well... it seems like a php bug to me now... mainloop_count should be < 0 since you didn't pass it in.. but I think we can work around it can you change the rlogit to something like this and let me know what it says rlogit("WTF.. NAME LENGTH = %d, MAINLOOP COUNT = %d... AND [%d]\n", whatever, mainloop_count, ZEND_NUM_ARGS()); - Bob On Thu, 2004-01-08 at 13:41, Everton Luis Berz wrote: > result: > > WTF.. NAME LENGTH = 8, MAINLOOP COUNT = 136146712 > ** NUTS.. WE CRASHED > Quit (core dumped) > > > Bob Doan escreveu: > > Hi, > > > > In bindings/php/php.c > > > > You will see ZEND_FUNCTION(rlib_add_report) > > > > Can you add the rlogit line.. run your report.. crash.. but then look @ > > the apache log (or command line depending on how you did it).. > > and tell me what it says.. this looks like a PHP problem I think > > > > - Bob > > > > > > ZEND_FUNCTION(rlib_add_report) { > > zval *z_rip = NULL; > > int whatever, mainloop_count; > > char *name, *mainloop; > > rlib_inout_pass *rip; > > int id = -1; > > > > if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|s", &z_rip, > > &name, &whatever, &mainloop, &mainloop_count) == FAILURE) { > > return; > > } > > > > rlogit("WTF.. NAME LENGTH = %d, MAINLOOP COUNT = %d\n", whatever, > > mainloop_count); > > > > ZEND_FETCH_RESOURCE(rip, rlib_inout_pass *, &z_rip, id, LE_RLIB_NAME, > > le_link); > > > > if(mainloop_count > 0) > > rlib_add_report(rip->r, estrdup(name), estrdup(mainloop)); > > else > > rlib_add_report(rip->r, estrdup(name), NULL); > > > > } > > > > > > |