fnobi / php-express

enable express server to exec php.
36 stars 15 forks source link

child_process缓冲区溢出 #14

Open nightInSummer opened 7 years ago

nightInSummer commented 7 years ago
child_process.exec(command,{
    env: env,
        maxBuffer: 8 * 1024 * 1024
},
...

lib/PHPExpress/engine.js 第32到34行,没有设置maxBuffer导致缓冲区大小只有默认的200k,当页面大小超出200k页面就会被截断,建议添加maxBuffer参数,如上