Parser: Better debugging of lock errors ("Did you call Parser::parse recursively?")
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 23 May 2017 12:48:32 +0000 (14:48 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 23 May 2017 12:50:13 +0000 (14:50 +0200)
commitbaab085b322c67877ef9507255d1faf953bb98b8
treedcc69505dc4fdf136148ae3363a2ddcd49092fad
parente1090009434d4908a37c8bc481fe07e96c5f647f
Parser: Better debugging of lock errors ("Did you call Parser::parse recursively?")

Save the backtrace when locking, so that if some code tries locking again,
we can print the lock owner's backtrace for easier debugging.

Change-Id: I6e352b4aa5e7cb35825a66592f6c066d9e8b95c9
includes/parser/Parser.php