[phpMyAdmin Git] [phpmyadmin/phpmyadmin] 4fd270: Avoid rewriting PHP stack frames

Michal Čihař michal at cihar.com
Mon Jun 6 13:55:10 CEST 2016

  Branch: refs/heads/QA_4_6
  Home:   https://github.com/phpmyadmin/phpmyadmin
  Commit: 4fd270965082ae17c3ac027dcbb5926244b03c9e
  Author: Michal Čihař <michal at cihar.com>
  Date:   2016-06-06 (Mon, 06 Jun 2016)

  Changed paths:
    M ChangeLog
    M libraries/Error.php
    M test/classes/ErrorTest.php

  Log Message:
  Avoid rewriting PHP stack frames

Surprisingly PHP stack frames are passed as references to the error
handling code, thus changing value there leads to changing value in the
executed code.

With MySQL issuing warning about incompatible version (different runtime
library than compile time), handling this warning rewrites current stack
frame and the mysql_real_connect later sees parameters as processed by
Error class for display.

We now create copy of the stacktrace to avoid this.

Fixes #12279

Signed-off-by: Michal Čihař <michal at cihar.com>

More information about the Git mailing list