In less fortunate areas you can be consigned to a permanent adjunct or postdoctoral purgatory.
At some point I've considered that a second master's in a complementary field could make more sense than a PhD.
Because why would you linger around in university if you can have a serious income ten years earlier? Obviously something must be "wrong" with you, something that would make you a complicated employee that just asks for creating trouble. Better hire a CS bachelor for a third of what you would ask (risking you'd run as soon as you get some offer more to your liking), not like we're doing any revolutionary bleeding-edge stuff anyways.
Not saying it should be like that, nor that it is completely impossible to advance in those countries without. It's more that there's a glass ceiling through which you'll have to break if you don't have a PhD. And I have talked with PhD students with such backgrounds who were quite clear on that. For a (to me) surprising number of them, an academic career was not the main goal at all (not necessarily completely ruled out, but not the original main goal).
He gets to be an indentured servant, but in the end hopefully he will have a piece of Paper from a 1st world country that will certify his already substantial CS skills. (also possibly, a Foreign nationality down the line, providing yet another piece of paper, a passport with respect)
In addition, my sister and nieces get to live in a good country, and I have been very impressed by their education, even a state school in UK is miles ahead of any private school we could afford here.
It's a trade he made, despite knowing he was being made a sucker, because the Upshot was going to be worth it in a decade's time. He was going to spend those years in academia (at a uni in my 3rd world country) anyways, why not get something for it?
----
I think that's how the assembly line will work in developed countries. As local citizens (like you and other commenters here) realize the two letters (Dr) are not worth the effort, uni will turn to academics from other countries, instead of actually reforming the system.
I suspect this has already happened.
In 1940, 25% of the population were high school graduates and 4% had college degrees.
Today, 30% of the population have college degrees, and ~4% of the population have PhD, MD, JD etc.
So a college degree doesn't indicate what it once did.
Are we going to up the degree requirements for everything? High school to college diploma, bachelor's to master's, master's to doctorate, doctorate to ???