I spent a couple of hours today tracking down some very odd things I was seeing calling sapi_get_stat() from an extension. The symptom was that the stat struct I was getting back looked messed up and shifted, as if there was a binary compatibility mismatch. I chased a number of things until I realized that the Debian version of Apache is compiled using -D_FILE_OFFSET_BITS=64 which turns regular stat() into a stat64() call. That means that Apache is doing a stat64(), but PHP and any phpized extensions are doing regular stat() calls.
So I think we need to trickle the "apxs -q CFLAGS" flags down into the PHP build and into phpize. On this Debian box I get: 3:47pm colo:~> apxs -q CFLAGS -DLINUX=22 -DEAPI -DTARGET="apache" -DHAVE_SET_DUMPABLE -DDB_DBM_HSEARCH=1 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -O1 -g -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 Anybody see a better way to solve this? -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php