change Z_SVAL_P to Z_STRVAL_P