From: Everton L. B. <ev...@fa...> - 2004-01-09 12:34:57
|
hu.. i put the line and now my report works fine (except the log line at top..) the result is: WTF.. NAME LENGTH = 8, MAINLOOP COUNT = 16... AND [2] <head><style type="text/css">pre { margin:0; padding:0; margin-top:0; margin-bottom:0; font-size: 10pt;} DIV { position: absolute; left: 0; } TABLE { border: 0; cellspacing: 0; cellpadding: 0; width: 100%; } </style></head> <body><table><tr><td><pre><DIV><img src="../logo.jpg"></DIV> <font size="5" > </font><font size="5" >Rlib Sample Report</font> ..... Bob Doan escreveu: > 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); >>> >>>} >>> >>> >> >> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > Rlib-users mailing list > Rli...@li... > https://lists.sourceforge.net/lists/listinfo/rlib-users > -- Everton Luis Berz Nucleo de Sistemas :: FACCAT - Faculdades de Taquara +55 51 541 6600 - R.624 ICQ 7807919 |