|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-06-15 14:09 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
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>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>