{"push_id":616276975,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"777eccb2d10bd888894db11d46aab51bf7378a72","before":"5905c065b0a7b86201ecaed304704c5a3cfa525f","commits":[{"sha":"3199dd02e7c0e643aeb342e863e434901108204f","author":{"email":"5c4e47d267602c70dc9b97eab022bd624db1552a@moodle.org","name":"Eloy Lafuente (stronk7)"},"message":"phpcomplete#GetClassName(): Avoid infinite loop\n\nBecause of too much simple regexp to detect classes\nit's not hard to get GetClassName() iterating forever.\n\nThis commit just adds a simple \\s to the line regexp in\norder to avoid some obvious false matches. And then moves\nthe inc to the end of the loop, so it will\nhappen always, ensuring the infinite loop won't happen ever.\n\nI've tried also adding some \"forbidden\" chars to the line\nregexp, but finally decided to abandon that route because\nrealized that somebody could be adding those chars in a comment\nor other endless combinations.\n\nSimple code examples heading to the infinite loop:\n\n$var = 'Anything with a\n       class will loop to the infinite'\n\n$verylongvariablethatcausesnextlinetowrap =\n    classname(...);\n\nclassify_is_a_nice_method_name_isnt_it(...);\n\nAnd so on. This simple fix should avoid the problem.","distinct":true,"url":"https://api.github.com/repos/stronk7/phpcomplete.vim/commits/3199dd02e7c0e643aeb342e863e434901108204f"},{"sha":"777eccb2d10bd888894db11d46aab51bf7378a72","author":{"email":"6ec382cf8dc8c1a9be84026cf1f9af7e48f7e7e0@gmail.com","name":"dudu"},"message":"Minor simplification","distinct":true,"url":"https://api.github.com/repos/stronk7/phpcomplete.vim/commits/777eccb2d10bd888894db11d46aab51bf7378a72"}]}