What is the movie from the late 80s or early 90s where a boy travels to and escapes from a weird dream-like world?

It was probably "The Never Ending Story".