fix memory leak

the value shouldn't be ref, use z_add_ref is enough
Fixed bug #64432 (more empty delimiter warning in strX methods)
Merge branch 'PHP-5.4' into PHP-5.5
Merge branch 'PHP-5.5'