Bug #75373 [Com]: Warning Internal error: wrong size calculation

From: Date: Wed, 18 Oct 2017 03:57:14 +0000
Subject: Bug #75373 [Com]: Warning Internal error: wrong size calculation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211767@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75373&edit=1 ID: 75373 Comment by: tm8544 at hotmail dot com Reported by: tm8544 at hotmail dot com Summary: Warning Internal error: wrong size calculation Status: Feedback Type: Bug Package: opcache Operating System: Windows 10 x64 PHP Version: 7.2.0RC4 Assigned To: cmb Block user comment: N Private report: N New Comment: File 3: seo.class.php https://pastebin.com/6AgAEs5A Previous Comments: ------------------------------------------------------------------------ [2017-10-17 16:26:08] cmb@php.net > File 3: seo.class.php > > I'd have to paste it in here, but file size is 96 kB. 96 kB is quite a lot. Can you make it available by other means, e.g. pastebin? ------------------------------------------------------------------------ [2017-10-16 18:16:48] tm8544 at hotmail dot com File 3: seo.class.php I'd have to paste it in here, but file size is 96 kB. Files 1 and 2 are available, shall I paste file 3? ------------------------------------------------------------------------ [2017-10-16 18:14:35] tm8544 at hotmail dot com file 2: core.lib.php Download from phpmyadmin version 4.7.4, https://www.phpmyadmin.net/ Extract from folder 'libarries' ------------------------------------------------------------------------ [2017-10-16 18:11:26] tm8544 at hotmail dot com file 1: information.php ---------------- <?php /* Module: Information Pages Unlimited File date: 2007/02/17 Based on the FAQ script of adgrafics Adjusted by Joeri Stegeman (joeri210 at yahoo.com), The Netherlands osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ //// /************************************************ Modified by Robert Fisher aka Thunderace 23 March 2006 Information_children mod This file now shows highlights and children in the same manner as osCommerce ************************************************/ function tep_information_show_category($information_group_id = 1) { global $sitemapString, $languages_id; $information_tree = array(); $informationString = ''; $parent_child_selected = ''; // Retrieve information from db // ID set by module for Information box $child_information = array(); $information_query = tep_db_query("SELECT information_id, information_title, parent_id FROM " . TABLE_INFORMATION . " WHERE visible='1' and language_id='" . $languages_id ."' and information_group_id = '" . $information_group_id . "' ORDER BY sort_order"); while($information = tep_db_fetch_array($information_query)) { $information_tree[$information['information_id']] = array( 'info_title' => $information['information_title'], 'parent_id' => $information['parent_id'], 'info_next_id' => 0 ); if ($information_tree[$information['information_id']]['parent_id'] != '0') { $child_information[] = array ( 'parent_info_id' => $information['parent_id'], 'child_info_id' => $information['information_id'] ); } } $count_child = count($child_information); // Test if a child has been requested and set $parent_child_selected for ( $i = 1; $i < ($count_child+1); $i++ ) { if ((isset($_GET['info_id'])) && ($child_information[$i]['child_info_id'] == $_GET['info_id'])) { $parent_child_selected = $child_information[$i]['parent_info_id']; } } // Run through the $information_tree to find all pages // while ($element = each*($information_tree)) { foreach($information_tree as $key => $element) { // if (!isset($information_tree[$element['_key_']]['parent_id']) || ($information_tree[$element['_key_']]['parent_id'] == 0)) { if (!isset($element['parent_id']) || ($element['parent_id'] == 0)) { //Set the main title to bold if it was selected or one of its children were selected if (((isset($_GET['info_id'])) && ($_GET['info_id'] == $key)) || ($parent_child_selected == $key)) { $informationString .= '<a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $key) . '"><b>•' . $information_tree[$key]['info_title'] . '</b></a><br />'; } else { $informationString .= '<a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $key) . '">' . $information_tree[$key]['info_title'] . '</a><br />'; //Sitemap only $sitemapString .= '<li><a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $key) . '">' . $information_tree[$key]['info_title'] . '</a></li>' . "\n"; } //Just for sitemap $ul = false; for ( $i = 1; $i < ($count_child+1); $i++ ) { if ($child_information[$i]['parent_info_id'] == $key) { if ($ul == false) { $sitemapString .= '<ul>' . "\n"; $ul = true; } $sitemapString .= '<li><a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $child_information[$i]['child_info_id']) . '">' . $information_tree[$child_information[$i]['child_info_id']]['info_title'] . '</a></li>' . "\n"; } if (($i == $count_child) && ($ul == true)) { $sitemapString .= '</ul>' . "\n"; } } //End just for sitemap //Show children if they exist if (((isset($_GET['info_id'])) && ($_GET['info_id'] == $key)) || ($parent_child_selected == $key)) { for ( $i = 0; $i < ($count_child); $i++ ) { if ($child_information[$i]['parent_info_id'] == $key) //Show a child as bold if it was selected if ((isset($_GET['info_id'])) && ($_GET['info_id'] == $child_information[$i]['child_info_id'])) { $informationString .= '&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $child_information[$i]['child_info_id']) . '"><b>' . $information_tree[$child_information[$i]['child_info_id']]['info_title'] . '</b></a><br />'; } else { $informationString .= '&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $child_information[$i]['child_info_id']) . '">' . $information_tree[$child_information[$i]['child_info_id']]['info_title'] . '</a><br />'; } } } } } return $informationString; } //// // Define customer greetings function tep_information_customer_greeting_define() { global $customer_id, $customer_first_name, $languages_id, $category_depth; if ( $category_depth == 'top' ) { // Retrieve information from db $information_group_id = 2; // ID set by module for Entrance messages $information_query = tep_db_query("select information_title, information_description from " . TABLE_INFORMATION . " where language_id = '" . (int)$languages_id . "' and information_group_id = '" . (int)$information_group_id . "'"); while ($information = tep_db_fetch_array($information_query)) { // if($information['information_title'] == 'HEADING_TITLE') define($information['information_title'], $information['information_description']); } } } //// // Return a customer greeting function tep_information_customer_greeting() { global $customer_id, $customer_first_name; if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) { $greeting_string = sprintf(TEXT_GREETING_PERSONAL, tep_output_string_protected($customer_first_name), tep_href_link(FILENAME_PRODUCTS_NEW)); } else { $greeting_string = sprintf(TEXT_GREETING_GUEST, tep_href_link(FILENAME_LOGIN, '', 'SSL'), tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')); } return $greeting_string; } ?> ------------------------------------------------------------------------ [2017-10-16 17:24:37] ab@php.net Hi @tm8544, thanks for the further info. The INI is there, but a PHP code to run is still needed. Perhaps you could extract it from your application, otherwise - if it's an opensource project, please point to a repo. A small PHP snippet were preferable. Thanks. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=75373 -- Edit this bug report at https://bugs.php.net/bug.php?id=75373&edit=1

« previous php.bugs (#211767) next »