i've got crashes on sending some sequenced data to console.
while ($row = $tyreRS->fetch_assoc()) {
if ($zz<=8) d($row, "row".$zz);
$zz++;
........
}
while ($row = $tyreRS->fetch_assoc()) {
if ($zz<=7) d($row, "row".$zz);
$zz++;
........
}
while ($row = $tyreRS->fetch_assoc()) {
if ($zz==8) d($row, "row".$zz);
$zz++;
........
}
so it's not about any object that i'm dumping - it's something about sequence of data sent to client side.
JS error in Chrome Extension:
Uncaught SyntaxError: Unexpected token < chrome-extension://nfhmhhlpfleoednkpnnnkolmclajemef/background.html:1
Object {id: "149785", season: "Летние", seasonNameShortName: "leto", radius: "17", href: "/shini/maker/bridgestone/ecopia_ep200/225-55-R17-V97-tsize_074301"…}
count: "8"
height: "55"
href: "/shini/maker/bridgestone/ecopia_ep200/225-55-R17-V97-tsize_074301"
id: "149785"
imageURL: "imglib/_newimage/shini/maker/bridgestone/ecopia_ep200/bridgestone_ecopia_ep200.jpg"
loadIndex: "97"
manufacturerName: "Bridgestone"
price: "6751"
radius: "17"
radius_name: "R17"
season: "Летние"
seasonNameShortName: "leto"
shortDescription: ""
speedIndex: "V"
tSize: "225/55 R17"
tyreName: "Ecopia EP200"
width: "225"
// PHP Console debugger
require_once('php-console/src/PhpConsole/__autoload.php');
// Call debug from global PC class-helper (most short & easy way)
PhpConsole\Helper::register(); // required to register PC class in global namespace, must be called only once
$connector = PhpConsole\Connector::getInstance();
$connector->setPassword('*****', true);
//$connector->setSourcesBasePath('/Users/info/_sites/ik');
// USING: http://php-console.com/instance/examples/#debug_vars
//PC::debug('called from PC::debug()', 'db');
//PC::db($connector); // means "db" will be handled as debug tag
// Configure eval provider
$evalProvider = $connector->getEvalDispatcher()->getEvalProvider();
$evalProvider->addSharedVar('post', $_POST); // so "return $post" code will return $_POST
$evalProvider->setOpenBaseDirs(array(__DIR__)); // see http://php.net/open-basedir
$connector->startEvalRequestsListener(); // must be called in the end of all configurations
$handler = PhpConsole\Handler::getInstance();
// You can override default Handler behavior:
// $handler->setHandleErrors(false); // disable errors handling
// $handler->setHandleExceptions(false); // disable exceptions handling
// $handler->setCallOldHandlers(false); // disable passing errors & exceptions to prviously defined handlers
$handler->start(); // initialize handlers
// use: d($var, "tag");
function d($var, $tags = null) {
PhpConsole\Connector::getInstance()->getDebugDispatcher()->dispatchDebug($var, $tags, 1);
}
i have this issue not only in this code - it happens from quite often for me.
disappointed several times per day :))