My custom PHP code exits when I call a mantis function

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
malkevia
Posts: 5
Joined: 25 Apr 2014, 12:20

My custom PHP code exits when I call a mantis function

Post 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
atrol
Site Admin
Posts: 8376
Joined: 26 Mar 2008, 21:37
Location: Germany

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

Post 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
Please use Search before posting and read the Manual
malkevia
Posts: 5
Joined: 25 Apr 2014, 12:20

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

Post by malkevia »

Hi Atrol,

Thanks for your reply.

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