add few pass-by-reference functions.

- preg_match
- preg_match_all

and
hasPassedByReference changes.
- change to private from public.