support null chars in default arg strings
commitaaaf59720aeeee10015c212d1e2923a897450865
authorPaul Tarjan <ptarjan@fb.com>
Mon, 17 Mar 2014 08:56:44 +0000 (17 01:56 -0700)
committerSara Golemon <sgolemon@fb.com>
Mon, 17 Mar 2014 20:31:36 +0000 (17 13:31 -0700)
tree0a8beae00d5254199a96d368dc15e09ce2c713cb
parentba7f636dbdd685fcff2583ec7b8755e7dd352d70
support null chars in default arg strings

In #1600 we are actually supporting printing of default args, which evals them. All this stuff uses c-strings all the way down so we need to escape nulls.

Reviewed By: @elgenie

Differential Revision: D1223776
hphp/util/text-util.cpp