Bug #69838 [Opn]: OPCACHE Warning Internal error: wrong size calculation
| From: | tm8544 at hotmail dot com | Date: | Mon, 15 Jun 2015 16:45:24 +0000 |
| Subject: | Bug #69838 [Opn]: OPCACHE Warning Internal error: wrong size calculation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-193518@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69838&edit=1
ID: 69838
User updated by: tm8544 at hotmail dot com
Reported by: tm8544 at hotmail dot com
Summary: OPCACHE Warning Internal error: wrong size
calculation
Status: Open
Type: Bug
Package: opcache
Operating System: Windows 7 x64
PHP Version: 7.0.0alpha1
Block user comment: N
Private report: N
New Comment:
footer.php (EDIT: corrected scandinavian characters, if it should matter)
<table style="margin:auto;"><tr><td><ul style="margin:
0px;"><li>Katso Juhon, Sohvin, Mirri-Pekan ja Feetun tekemä <a
class="linkki_decoration_none" href="/linkit/<?php
if ($CLIENT_TYPE == "mobi") {echo 'mirri-pekan_animaatiopaketti_1.mp4';} else
{echo 'mirri-pekan_animaatiopaketti_1.asf';}
?>">animaatiopaketti</a> (sisältää 3
lyhytelokuvaa).</li><li>Katso Mirri-Pekan, Sohvin ja Feetun <a
class="linkki_decoration_none" href="/linkit/<?php
if ($CLIENT_TYPE == "mobi") {echo 'm-psf_tetris_musiikkivideo.wmv.3gp';} else
{echo 'm-psf_tetris_musiikkivideo.asf';}
?>">musiikkivideo</a>. HUOM ! Katso lopputeksteihin saakka
!</li></ul></td></tr><tr><td class="muutos"><?php
echo "Palvelimen " . getenv("COMPUTERNAME") . " päivämäärä
ja aika: ";
$date = getdate();
echo $date['mday'].".".$date['mon'] . "." .
$date['year'] . ", " . $date['hours'] . ":" .
substr('0'.$date['minutes'], -2) .
":".substr('0'.$date['seconds'], -2);
echo ($CLIENT_TYPE == "mobi") ? '<br>' : ' | ';
$REF1=gethostbyname($_SERVER['SERVER_NAME']);
echo 'Palvelimen IP: ' . $REF1;
echo ($CLIENT_TYPE == "mobi") ? '<br>' : ' | ';
// echo 'Oma IP: ' . ($REF == $REF1 ? "Kotiverkko" : $REF);
echo 'Oma IP: ' . ($REF == "192.168.0.254" ? "Kotiverkko" : $REF);
/*
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://192.168.0.94/status.html");
curl_setopt($ch, CURLOPT_PORT, 80);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); //not necessary unless the file redirects (like
the PHP example we're using here)
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
// curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
// curl_setopt($ch, CURLOPT_USERPWD, "xxx:yyy");
$data = curl_exec($ch);
curl_close($ch);
echo ($CLIENT_TYPE == "mobi") ? '<br>' : ' | ';
if ($data === false) {
echo ("Ei yhteyttä IP-pistorasiaan!");
} else {
$match = preg_match("~System temperature</td><td colspan=4 width=70%
class=s1>(.*)</td>~i", $data, $matches);
echo "IQ-socket: ";
if ($match) echo "<a class='muutos' target='_blank' href='https://' . $_SERVER["SERVER_NAME"].
'/hallinta/iprasia.php'>".$matches[1]."</a>"; else echo "No
Temp value";
// System temperature</td><td colspan=4 width=70% class=s1> 47.4 °C</td>
}
*/
echo ' ';
if ($CLIENT_TYPE == "mobi") {
echo '<img style=\'border:0;\' src=\'images/valid_n_html_5.gif\'
height=\'16\'>';
} else {
echo '<img style=\'border:0;\' src=\'images/valid_n_html_5.gif\'
height=\'20\' title=\'Tarkistettu HTML5-koodi\'>';
}
?></td></tr></table>
Previous Comments:
------------------------------------------------------------------------
[2015-06-15 16:07:08] tm8544 at hotmail dot com
footer.php
-------------
<table style="margin:auto;"><tr><td><ul style="margin:
0px;"><li>Katso Juhon, Sohvin, Mirri-Pekan ja Feetun tekemõ <a
class="linkki_decoration_none" href="/linkit/<?php
if ($CLIENT_TYPE == "mobi") {echo 'mirri-pekan_animaatiopaketti_1.mp4';} else
{echo 'mirri-pekan_animaatiopaketti_1.asf';}
?>">animaatiopaketti</a> (sisõltõõ 3
lyhytelokuvaa).</li><li>Katso Mirri-Pekan, Sohvin ja Feetun <a
class="linkki_decoration_none" href="/linkit/<?php
if ($CLIENT_TYPE == "mobi") {echo 'm-psf_tetris_musiikkivideo.wmv.3gp';} else
{echo 'm-psf_tetris_musiikkivideo.asf';}
?>">musiikkivideo</a>. HUOM ! Katso lopputeksteihin saakka
!</li></ul></td></tr><tr><td class="muutos"><?php
echo "Palvelimen " . getenv("COMPUTERNAME") . " põivõmõõrõ
ja aika: ";
$date = getdate();
echo $date['mday'].".".$date['mon'] . "." .
$date['year'] . ", " . $date['hours'] . ":" .
substr('0'.$date['minutes'], -2) .
":".substr('0'.$date['seconds'], -2);
echo ($CLIENT_TYPE == "mobi") ? '<br>' : ' | ';
$REF1=gethostbyname($_SERVER['SERVER_NAME']);
echo 'Palvelimen IP: ' . $REF1;
echo ($CLIENT_TYPE == "mobi") ? '<br>' : ' | ';
// echo 'Oma IP: ' . ($REF == $REF1 ? "Kotiverkko" : $REF);
echo 'Oma IP: ' . ($REF == "192.168.0.254" ? "Kotiverkko" : $REF);
/*
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://192.168.0.94/status.html");
curl_setopt($ch, CURLOPT_PORT, 80);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
// curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); //not necessary unless the file redirects (like
the PHP example we're using here)
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
// curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
// curl_setopt($ch, CURLOPT_USERPWD, "xxx:yyy");
$data = curl_exec($ch);
curl_close($ch);
echo ($CLIENT_TYPE == "mobi") ? '<br>' : ' | ';
if ($data === false) {
echo ("Ei yhteyttõ IP-pistorasiaan!");
} else {
$match = preg_match("~System temperature</td><td colspan=4 width=70%
class=s1>(.*)</td>~i", $data, $matches);
echo "IQ-socket: ";
if ($match) echo "<a class='muutos' target='_blank' href='https://' . $_SERVER["SERVER_NAME"].
'/hallinta/iprasia.php'>".$matches[1]."</a>"; else echo "No
Temp value";
// System temperature</td><td colspan=4 width=70% class=s1> 47.4 âC</td>
}
*/
echo ' ';
if ($CLIENT_TYPE == "mobi") {
echo '<img style=\'border:0;\' src=\'images/valid_n_html_5.gif\'
height=\'16\'>';
} else {
echo '<img style=\'border:0;\' src=\'images/valid_n_html_5.gif\'
height=\'20\' title=\'Tarkistettu HTML5-koodi\'>';
}
?></td></tr></table>
------------------------------------------------------------------------
[2015-06-15 14:46:05] laruence@php.net
could you please paste one mentioned file here? (the smallest one)
maybe the footer.php?
thanks
------------------------------------------------------------------------
[2015-06-15 14:09:35] tm8544 at hotmail dot com
Description:
------------
If Opcache is on, log is filled with error messages like "Warning Internal error: wrong size
calculation"
Below is an example, index.php uses include to read other files in the log.
If Opcache is disabled, there are no error messages.
Despite the error messages when opcache is on, programs runs otherwise as expected
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\index.php start=0x2006cf38, end=0x2006fa20, real=0x2006fa1c
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\includes\linkrel.txt start=0x2007c590, end=0x2007c8d8, real=0x2007c8d4
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\includes\nimipaivat.php start=0x2007c8d8, end=0x2007f5e8, real=0x2007f5e4
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\php-scripts\nimipaiva_luettelo.php start=0x2007f5e8, end=0x20088400, real=0x200883fc
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\includes\jaljella_oleva_aika.php start=0x20088400, end=0x20089718, real=0x20089714
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\includes\laskuri.php start=0x20089718, end=0x2008dc80, real=0x2008dc7c
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\db_settings\info_db_settings.php start=0x2009a930, end=0x2009ae18, real=0x2009ae14
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\includes\weather.php start=0x2009c600, end=0x2009ccc8, real=0x2009ccc4
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\db_settings\linkit_db_settings.php start=0x200a06a0, end=0x200a0b98, real=0x200a0b94
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\includes\footer.php start=0x200a0b98, end=0x200a22d0, real=0x200a22cc
Mon Jun 15 17:02:54 2015 (2180): Warning Internal error: wrong size calculation:
C:\HTTP-SERVER\laskurit\count-g.php start=0x200a22d0, end=0x200a5648, real=0x200a5644
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69838&edit=1