09/23/2011 at 10:00 AM EDT
popped into the Cheesecake Factory in Sherman Oaks, Calif., to order takeout food. While ordering, though, the actor bumped into NBA star Shaquille O'Neal
, and the two joked around, sharing playful banter, according to an onlooker. O'Neal, a restaurant regular, was eating the herb-crusted salmon. Smith also took time to sign autographs and take some pictures with fans.