mirror of
https://github.com/php/php-src.git
synced 2026-04-21 15:08:16 +02:00
3a249e769b
commit2d3cac9e00Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 11:54:47 2018 +0300 Fixed static property access commit31786ee272Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 11:05:29 2018 +0300 Avoid duplicate checks commit5ae502b979Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 10:39:17 2018 +0300 Optimization commit82c17f0e8aAuthor: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 09:26:50 2018 +0300 Removed unused zend_duplicate_property_info() commitba53d1d0ddMerge:eacc11b8fdc4b14370cfAuthor: Dmitry Stogov <dmitry@zend.com> Date: Tue Sep 11 09:24:13 2018 +0300 Merge branch 'master' into shadow * master: 7.0.33 next Sync NEWS [ci skip] add NEWS for 76582 Enforce ordering of property compare in object comparisons Fixed wrong assertion Skip test on unsuitable env commiteacc11b8fdAuthor: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 13:12:39 2018 +0300 Fixed failure of ext/spl/tests/array_017.phpt commit62d1871430Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 11:55:07 2018 +0300 Fixed issues commit1d37e3a40eMerge:d6c3f098b61e550e6f7eAuthor: Dmitry Stogov <dmitry@zend.com> Date: Mon Sep 10 10:21:20 2018 +0300 Merge branch 'master' into shadow * master: Update NEWS Fix for bug #76582 Fix ssl stream reneg limit test to print only after first renegotiation Make a copy unconditionally Fix memory leak in pcre cache Remove not needed checking for <errno.h> Remove HAVE_ASSERT_H Add test for bug #76850 Fixed bug #76850 Exit code mangled by set locale/preg_match Remove empty PHP tags from test Fix #75273: php_zlib_inflate_filter() may not update bytes_consumed Fix PCRE2 exclusion and remove dead libs in Makefile.gcov Report mem leaks to stderr if no Win debugger is present Use combined assignment contanation operator Fixed bug #76796 Support fixed address mmap without replacement commitd6c3f098b6Author: Dmitry Stogov <dmitry@zend.com> Date: Fri Sep 7 13:56:30 2018 +0300 Get rid of ZEND_ACC_SHADOW
60 lines
1.6 KiB
PHP
60 lines
1.6 KiB
PHP
--TEST--
|
|
Bug: tidy segfaults with markup=false
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('tidy')) die('skip'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
// bug report from http://sf.net/tracker/?func=detail&atid=390963&aid=1641868&group_id=27659
|
|
|
|
abstract class BaseClass {
|
|
private static $tidyconfig;
|
|
|
|
public function __construct() {
|
|
self::$tidyconfig = array(
|
|
'indent' => false,
|
|
'clean' => true,
|
|
'merge-divs' => false,
|
|
'quote-marks' => true,
|
|
'drop-empty-paras' => false,
|
|
'markup' => false,
|
|
'output-xhtml' => true,
|
|
'wrap' => 0);
|
|
|
|
}
|
|
|
|
abstract public function run();
|
|
|
|
public function getURL($url) {
|
|
$data = "awerawer"; // in my code, $data is downloaded from a site
|
|
|
|
$tidy = new tidy;
|
|
$tidy->parseString($data, self::$tidyconfig, 'utf8');
|
|
$tidy->cleanRepair();
|
|
|
|
return $tidy;
|
|
}
|
|
|
|
}
|
|
|
|
class ChildClass extends BaseClass {
|
|
public function __construct() {
|
|
parent::__construct();
|
|
}
|
|
|
|
public function run() {
|
|
$result = $this->getURL('awer');
|
|
if ($result === null) {
|
|
echo "\tError:\n";
|
|
}
|
|
var_dump((string)$result);
|
|
}
|
|
}
|
|
|
|
$instance = new ChildClass();
|
|
$instance->run();
|
|
|
|
?>
|
|
--EXPECT--
|
|
string(0) ""
|