Not a bug.
The search term [phpmailer]
gets parsed as just a tag, and thus you end up on the page https://stackoverflow.com/questions/tagged/phpmailer, which is a page with all questions, and not a search page.
The search term [phpmailer] and [php]
actually links you to the search page https://stackoverflow.com/search?q=[phpmailer]+and+[php], which includes answers as well. If you add Is: q
to only search questions, you get 2,611 results.
If you want to search both questions and answers with the [phpmailer]
tag, you can add an always true search term, like created:100y
to get all the results of the past century. That returns 8,786 results.