bug71930.phpt 407 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed)
  3. --EXTENSIONS--
  4. curl
  5. --FILE--
  6. <?php
  7. class A {
  8. public static function dummy() {
  9. }
  10. }
  11. $a = array();
  12. $a[] = "A";
  13. $a[] = "dummy";
  14. $ch1 = curl_init();
  15. curl_setopt($ch1, CURLOPT_HEADERFUNCTION, $a);
  16. set_error_handler($a);
  17. set_error_handler(function()use($ch1){});
  18. set_error_handler(function(){});
  19. ?>
  20. okey
  21. --EXPECT--
  22. okey