Can not build by custom PHP 5.1.6

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 12:38:54 UTC

Modified:

2016-12-21 18:52:46 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Can not build by custom PHP 5.1.6

Symptoms

The following errors appear when make php 5.1.6:

./mysqli_api.c: In function 'zif_mysqli_stmt_bind_param':
./mysqli_api.c:145: error: 'gptr' undeclared (first use in this function)
./mysqli_api.c:145: error: (Each undeclared identifier is reported only once
./mysqli_api.c:145: error: for each function it appears in.)
./mysqli_api.c: In function 'zif_mysqli_stmt_execute':
./mysqli_api.c:601: error: 'gptr' undeclared (first use in this function)

Cause

Known bug with php 5.1.6 and mysql 5.1.44+ http://bugs.mysql.com/bug.php?id=51582

Resolution

Update PHP or downgrade libmysql to make them match.

Also the manual workaround could be used:

Edit 'php-5.1.4/ext/mysqli/mysqli_api.c' and replace all occurrences of 'gptr' with 'char*' .

Have more questions? Submit a request
Please sign in to leave a comment.