mysqli clone fatal errors and fix segfault.
commit4a06dbc86735c66d0263efeb24c91078687254e3
authorThomas Colomb <thomas.colomb@dailymotion.com>
Tue, 10 Nov 2015 21:06:37 +0000 (10 13:06 -0800)
committerhhvm-bot <hhvm-bot@fb.com>
Tue, 10 Nov 2015 21:32:04 +0000 (10 13:32 -0800)
treef141222fc94b892787d21c8355889faec5660ba6
parentac3f8331d70ddb448d1e07782d5909a338f0a124
mysqli clone fatal errors and fix segfault.

Summary: Throw fatal error on clone of mysqli_driver, mysqli_result, mysqli_stmt, mysqli and fix segfault on store_result when there is no metadata.

Fix : #5849
Closes https://github.com/facebook/hhvm/pull/6527

Reviewed By: sgolemon, JoelMarcey

Differential Revision: D2637195

Pulled By: JoelMarcey

fb-gh-sync-id: fc62345f6606611408177b530a211818e7172fa7
hphp/runtime/ext/mysql/ext_mysqli.php
hphp/test/zend/good/ext/mysqli/tests/mysqli_driver_unclonable.php [moved from hphp/test/zend/bad/ext/mysqli/tests/mysqli_driver_unclonable.php with 100% similarity]
hphp/test/zend/good/ext/mysqli/tests/mysqli_driver_unclonable.php.expectf [moved from hphp/test/zend/bad/ext/mysqli/tests/mysqli_driver_unclonable.php.expectf with 100% similarity]
hphp/test/zend/good/ext/mysqli/tests/mysqli_driver_unclonable.php.skipif [moved from hphp/test/zend/bad/ext/mysqli/tests/mysqli_driver_unclonable.php.skipif with 100% similarity]
hphp/test/zend/good/ext/mysqli/tests/mysqli_stmt_num_rows.php [moved from hphp/test/zend/bad/ext/mysqli/tests/mysqli_stmt_num_rows.php with 100% similarity]
hphp/test/zend/good/ext/mysqli/tests/mysqli_stmt_num_rows.php.expectf [moved from hphp/test/zend/bad/ext/mysqli/tests/mysqli_stmt_num_rows.php.expectf with 100% similarity]
hphp/test/zend/good/ext/mysqli/tests/mysqli_stmt_num_rows.php.skipif [moved from hphp/test/zend/bad/ext/mysqli/tests/mysqli_stmt_num_rows.php.skipif with 100% similarity]