Fixed a typo ($x -> $ex)

There is a typo at line 7
Merge branch 'duzun-patch-1' into namespace-php5.3

Merge in duzun's fix