Page 1 of 1

My custom PHP code exits when I call a mantis function

Posted: 19 May 2016, 07:27
by malkevia
Hi all,

I try to develop a tool to auto fill bugs notes from emails.

I did some code with PHP, here are the main steps :

- getting emails from Exchange using EWS-PHP API
- fomatting emails content
- adding notes with mantis function
- creating bugs in some cases

When I launch my PHP code with my browser, everything is OK, my code does the job correctly.
When I launch my php code through CLI "php xxx.php", the code stops its execution at the end of the 1st mantis function it meets.

I already checked the mantis code but I still not understand why I have this behavior with CLI. Is anybody who can explain that?

Thanks a lot.

Regards

/malkevia

Re: My custom PHP code exits when I call a mantis function

Posted: 19 May 2016, 07:38
by atrol
malkevia wrote:I try to develop a tool to auto fill bugs notes from emails.
You might consider to use this plugin for it.
https://www.mantisbt.org/wiki/doku.php/ ... lreporting

Re: My custom PHP code exits when I call a mantis function

Posted: 19 May 2016, 08:13
by malkevia
Hi Atrol,

Thanks for your reply.

I already see this plugin but it doesn't respond to my needs.