facebook / facebook/hhvm

Printing non-serializable classes in the debugger says they're null

オープン
#3,829 コメント 0 件 リアクション 0 件 担当者 1 名 @paulbiss が担当を希望しています GitHub で見る
主要言語
C++
スター
18.7k
フォーク
3.1k
平均マージ
1時間 47分
マージ済み PR(30日)
2

説明

```
hphpd> $x = new ReflectionFunction('mb_ereg_replace')
hphpd> p $x
null
hphpd> p (string) $x
"/**\n * @param mixed \$pattern - The regular expression pattern. Multibyte\n * characters may be used in pattern.\n * @param string \$replacement - The replacement text.\n * @param string \$str - The string being checked.\n * @param string \$option - Matching condition can be set by option parameter.\n * If i is specified for this parameter, the case will be ignored. If x is\n * specified, white space will be ignored. If m is specified, match will be\n * executed in multiline mode and line break will be included in '.'. If p is\n * specified, match will be executed in POSIX mode, line break will be\n * considered as normal character. If e is specified, replacement string will\n * be evaluated as PHP expression.\n *\n * @return mixed - The resultant string on success, or FALSE on error.\n *\n */\nFunction [ function mb_ereg_replace ] {\n @@ /home/fredemmott/systemlib.phpmbstring 288 - 291\n\n - Parameters [4] {\n Parameter #0 [ HH\\mixed \$pattern ]\n Parameter #1 [ HH\\string \$replacement ]\n Parameter #2 [ HH\\string \$str ]\n Parameter #3 [ HH\\mixed or NULL \$option = NULL ]\n }\n}\n"
hphpd> =$x
wire error: a:1:{s:1:"_";O:18:"ReflectionFunction":2:{s:27:"
...(omitted)
hphpd> serialize($x)

Warning: Attempted to serialize unserializable builtin class ReflectionFunction
hpmhpd>
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。