Myphpadmin在调试PHP源代码时引发异常

时间:2019-09-10 14:55:16

标签: exception phpmyadmin

当我调试(xdebug)一些php代码并启动phpmyadmin时,然后登录后, myphpadmin引发以下异常:'PhpMyAdmin \ SqlParser \ Exceptions \ LoaderException:指定的上下文(“ \ PhpMyAdmin \ SqlParser \ Contexts \ ContextMySql50727”)不存在。'

多次按F5键(运行),我似乎登录正确。 后来再次发生相同的异常,几个F5以后都没事。

当调试器不活动时,我完全没有问题。

return {

        initialize: async function() {
                console.log(`***** Starting Scheduler on ${dateformat(new Date(), "dd-mm-YYYY h:MM:ss")}`);
                var j = schedule.scheduleJob('*/1 * * * *', function(){
                console.time('Scheduler execution time');
                if(interations === 0){
                    console.log(`Setting scheduler runtime to full time.`);
                }
                interations++;
                // call the method
                this.execute();
                console.log(`Job executed ${interations} times.`);
                console.timeEnd('Scheduler execution time');
            });

        },

        execute: async function {
            var options = {
                url: 'http://example.com',
                method: 'GET'
            }      
            return new Promise(function (resolve, reject) {
                request(options, function (error, res, body) {
                    if (!error && res.statusCode == 200) {
                        console.log
                        resolve(JSON.parse(body));
                    } else {
                        reject(error);
                    }
                });
            });    
        }
    }

异常在源文件的第467行发生: /usr/share/phpmyadmin/vendor/phpmyadmin/sql-parser/src/Context.php:

System info:
Database server
    Server: Localhost via UNIX socket
    Server type: MySQL
    Server connection: SSL is not being used Documentation
    Server version: 5.7.27-0ubuntu0.18.04.1 - (Ubuntu)
    Protocol version: 10
    User: root@localhost
    Server charset: UTF-8 Unicode (utf8)
Web server
    Apache/2.4.29 (Ubuntu)
    Database client version: libmysql - mysqlnd 5.0.12-dev - 20150407 - $Id: 3591daad22de08524295e1bd073aceeff11e6579 $
    PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
    PHP version: 7.2.19-0ubuntu0.18.04.2
phpMyAdmin
    Version information: 4.8.4, latest stable version: 4.9.0.1

0 个答案:

没有答案