Инструменты сайта


каталог-товаров
PHP Error

PHP Error

assert() has been disabled for security reasons

/var/www/sites/wiki/inc/DifferenceEngine.php(683)

671      *
672      * @param string[] $mapped_from_lines  This array should
673      *                                     have the same size number of elements as $from_lines.
674      *                                     The elements in $mapped_from_lines and
675      *                                     $mapped_to_lines are what is actually compared
676      *                                     when computing the diff.
677      *
678      * @param string[] $mapped_to_lines    This array should
679      *                                     have the same number of elements as $to_lines.
680      */
681     function __construct($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) {
682 
683         assert(count($from_lines) == count($mapped_from_lines));
684         assert(count($to_lines) == count($mapped_to_lines));
685 
686         parent::__construct($mapped_from_lines, $mapped_to_lines);
687 
688         $xi = $yi = 0;
689         $ecnt = count($this->edits);
690         for ($i = 0; $i < $ecnt; $i++) {
691             $orig = &$this->edits[$i]->orig;
692             if (is_array($orig)) {
693                 $orig = array_slice($from_lines, $xi, count($orig));
694                 $xi += count($orig);
695             }

Stack Trace

#0
+
 /var/www/sites/wiki/inc/DifferenceEngine.php(683): assert(true)
678      * @param string[] $mapped_to_lines    This array should
679      *                                     have the same number of elements as $to_lines.
680      */
681     function __construct($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) {
682 
683         assert(count($from_lines) == count($mapped_from_lines));
684         assert(count($to_lines) == count($mapped_to_lines));
685 
686         parent::__construct($mapped_from_lines, $mapped_to_lines);
687 
688         $xi = $yi = 0;
#1
+
 /var/www/sites/wiki/inc/DifferenceEngine.php(998): MappedDiff->__construct(array("{", "{ ", " ", "https", ...), array("{", "{", "https", ":", ...), array("{", "{", " ", "https", ...), array("{", "{", "https", ":", ...))
0993 
0994     function __construct($orig_lines, $closing_lines) {
0995         list ($orig_words, $orig_stripped) = $this->_split($orig_lines);
0996         list ($closing_words, $closing_stripped) = $this->_split($closing_lines);
0997 
0998         parent::__construct($orig_words, $closing_words, $orig_stripped, $closing_stripped);
0999     }
1000 
1001     function _split($lines) {
1002         if (!preg_match_all('/ ( [^\S\n]+ | [0-9_A-Za-z\x80-\xff]+ | . ) (?: (?!< \n) [^\S\n])? /xsu',
1003              implode("\n", $lines), $m)) {
#2
+
 /var/www/sites/wiki/inc/DifferenceEngine.php(1202): WordLevelDiff->__construct(array("{{ https://fiverr-res.cloudinary.com/images/t_main1,q_auto,f_au..."), array("{{https://fiverr-res.cloudinary.com/images/t_main1,q_auto,f_auto..."))
1197             print('<tr>' . $this->contextLine($line) .  $this->contextLine($line) . "</tr>\n");
1198         }
1199     }
1200 
1201     function _changed($orig, $closing) {
1202         $diff = new WordLevelDiff($orig, $closing);  // this escapes the diff data
1203         $del = $diff->orig();
1204         $add = $diff->closing();
1205 
1206         while ($line = array_shift($del)) {
1207             $aline = array_shift($add);
2020-08-08 15:43:43 nginx/1.13.3 Yii Framework/1.1.7