Bug #54644 [Asn->Fbk]: wrong pathes in php_pdo_mysql_int.h
| From: | johannes@php.net | Date: | Mon, 02 May 2011 11:32:14 +0000 |
| Subject: | Bug #54644 [Asn->Fbk]: wrong pathes in php_pdo_mysql_int.h | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160497@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54644&edit=1
ID: 54644
Updated by: johannes@php.net
Reported by: public at grik dot net
Summary: wrong pathes in php_pdo_mysql_int.h
-Status: Assigned
+Status: Feedback
Type: Bug
Package: PDO related
Operating System: unix
PHP Version: 5.3.6
Assigned To: mysql
Block user comment: N
Private report: N
New Comment:
To compile the extension stand-alone you need an installed PHP. I was
asking about that.
Previous Comments:
------------------------------------------------------------------------
[2011-05-02 13:26:33] public at grik dot net
yes, I am sure, I download PHP archive from this site and compile it
manually
always;
It does not matter how I compile. Just open php-
5.3.6/ext/pdo_mysql/php_pdo_mysql_int.h
and look at lines 27-29
You can compile only from the root folder of the archive, but if you
want to
build the extension separately with phpize, you need to edit the source.
------------------------------------------------------------------------
[2011-05-02 11:41:32] johannes@php.net
How did you compile and install PHP? Are you sure you have a clean
installation and not a mixture of different PHPs? It works for me
properly. Also: what kind of Unix are you using?
------------------------------------------------------------------------
[2011-05-01 14:15:34] public at grik dot net
Description:
------------
in ext/pdo_mysql/php_pdo_mysql_int.h you have
#if defined(PDO_USE_MYSQLND)
# include "ext/mysqlnd/mysqlnd.h"
# include "ext/mysql/mysql_mysqlnd.h"
# include "ext/mysqlnd/mysqlnd_libmysql_compat.h"
...
#if defined(PDO_USE_MYSQLND)
#include "ext/mysqlnd/mysqlnd_debug.h"
so when I tried to re-compile the pdo_mysql extension from the extension
folder
using
phpize;configure--with-pdo-mysql=mysqlnd;make, it barkled that
can't find
"ext/mysqlnd/mysqlnd.h"
I changed to #include "../../ext/mysqlnd/mysqlnd_debug.h"
and compiled the extension, but that's obviously not a solution.
Test script:
---------------
none
Expected result:
----------------
Build complete.
Don't forget to run 'make test'.
Actual result:
--------------
In file included from
/usr/src/web/php-5.3.6/ext/pdo_mysql/pdo_mysql.c:32:
/usr/src/web/php-5.3.6/ext/pdo_mysql/php_pdo_mysql_int.h:28:38: error:
ext/mysql/mysql_mysqlnd.h: No such file or directory
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54644&edit=1