Branch: refs/heads/QA_4_6
  Commit: 4fd270965082ae17c3ac027dcbb5926244b03c9e
  Author: Michal Čihař <>
  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ř <>

Git mailing list

Reply via email to