php-install Digest 20 Jul 2003 17:15:53 -0000 Issue 1468
Topics (messages 11311 through 11316):
PHP 4.3.2 extensions building problem?
11311 by: Lukasz Karapuda
11313 by: Michael Mauch
11315 by: Lukasz Karapuda
Re: Compiling php for Oracle
11312 by: Reuben D. Budiardja
Re: Question
11314 by: Michael Scappa
Re: Debug Assertion deep inside php_execute_script() on an SAPI.
11316 by: Thomas
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hello,
I am trying to build and install PHP 4.3.2 on Linux RedHat 7.3. The
configure, make and make install commands generate correct output.
The phpinfo() tells me that all the extensions I compiled in are
enabled.
However the extensions installation folder:
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ contains no
files. The extensions obviously DO NOT work.
This are my configure params:
./configure --with-mysql --with-apxs=/usr/sbin/apxs --with-zlib \
--enable-bcmath --with-bz2 --with-curl --with-dom \
--enable-exif --enable-ftp --with-gd --with-ttf \
--with-mime-magic=/usr/share/magic.mime \
--with-mnogosearch=/usr --with-pdflib \
--enable-xslt --with-xslt-sablot --with-sablot-js --with-kerberos
Any ideas what the problem is?
Is there anything special which has to be done to build the
extensions.
(I am using the bundled mysql and GD libraries).
Thanks in advance,
Lukasz Karapuda
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Lukasz Karapuda wrote:
> I am trying to build and install PHP 4.3.2 on Linux RedHat 7.3. The
> configure, make and make install commands generate correct output.
>
> The phpinfo() tells me that all the extensions I compiled in are
> enabled.
>
> However the extensions installation folder:
> /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ contains no
> files. The extensions obviously DO NOT work.
What do you mean by "obviously DO NOT work"?
a) I tried them and they did not work.
b) I guess that they don't work, because there are no files in that
directory.
> This are my configure params:
> ./configure --with-mysql --with-apxs=/usr/sbin/apxs --with-zlib \
> --enable-bcmath --with-bz2 --with-curl --with-dom \
> --enable-exif --enable-ftp --with-gd --with-ttf \
> --with-mime-magic=/usr/share/magic.mime \
> --with-mnogosearch=/usr --with-pdflib \
> --enable-xslt --with-xslt-sablot --with-sablot-js --with-kerberos
>
> Any ideas what the problem is?
There is no problem. Only shared extensions go into that extensions
directory. Compiled-in extensions are built into libphp4.so.
Regards...
Michael
--- End Message ---
--- Begin Message ---
Michael,
Thanks for the clarification. Now it makes sense that only shared
extensions are placed into the
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/ directory.
All the extensions work correctly, besides mysql. I tried compiling
with the bundled mysql libraries (---with-mysql) and with the mysql
libraries which i have currently installed on my system
(---with-mysql=/usr). In both cases the make is successful but the
extension is not working. When i do php -m (CLI) it lists all the
extensions including mysql.
I fixed the problem by installing mysql.so from the php-mysql RPM and
enabling it in php.ini. However i am concerned why i couldn't get it
to work the "normal" way.
Thanks in advance for your help,
Lukasz Karapuda
On Sat, 19 Jul 2003 20:14:44 +0200, [EMAIL PROTECTED] (Michael Mauch)
wrote:
>Lukasz Karapuda wrote:
>
>> I am trying to build and install PHP 4.3.2 on Linux RedHat 7.3. The
>> configure, make and make install commands generate correct output.
>>
>> The phpinfo() tells me that all the extensions I compiled in are
>> enabled.
>>
>> However the extensions installation folder:
>> /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ contains no
>> files. The extensions obviously DO NOT work.
>
>What do you mean by "obviously DO NOT work"?
>
>a) I tried them and they did not work.
>b) I guess that they don't work, because there are no files in that
> directory.
>
>> This are my configure params:
>> ./configure --with-mysql --with-apxs=/usr/sbin/apxs --with-zlib \
>> --enable-bcmath --with-bz2 --with-curl --with-dom \
>> --enable-exif --enable-ftp --with-gd --with-ttf \
>> --with-mime-magic=/usr/share/magic.mime \
>> --with-mnogosearch=/usr --with-pdflib \
>> --enable-xslt --with-xslt-sablot --with-sablot-js --with-kerberos
>>
>> Any ideas what the problem is?
>
>There is no problem. Only shared extensions go into that extensions
>directory. Compiled-in extensions are built into libphp4.so.
>
>Regards...
> Michael
--- End Message ---
--- Begin Message ---
On Saturday 19 July 2003 05:45 am, Michael Mauch wrote:
> Christian Villada wrote:
> > I'm trying to get PHP 4.2.2 connected to Oracle 8.1.7
> > in Linux RedHat 9
> >
> > ./.libs/libphp4.a(my_error.o)(.text+0x275): In
> > function `my_error':
> > /usr/src/redhat/BUILD/php-4.2.2/ext/mysql/libmysql/my_error.c:32:
> > undefined reference to `errno'
>
> That's an old bug in old PHP versions compiled on new systems with new
> glibc. Use the current PHP 4.3.2 instead.
And there is a problem with PHP-4.3.2 compiled with OCI8 support. It will give
segmentation fault. So, use either PHP-4.3.1, or the latest stable snapshot
from here:
http://snaps.php.net/
I use the latest stable php-4.3.x-dev and it works fine.
I struglled all weekends trying to get 4.3.2 working, but after several
e-mails exchange in PHP-DB and PHP-DEV found out that it has the problem.
Search the archive for my name with subject containing OCI8 if you want to
know more. But as I said, the either 4.3.x-dev or 4.3.1 should work fine
Reuben D. Budiardja
--
-------------------------------------------------
/"\ ASCII Ribbon Campaign against HTML
\ / email and proprietary format
X attachments.
/ \
-------------------------------------------------
Have you been used by Microsoft today?
Choose your life. Choose freedom.
Choose LINUX.
-------------------------------------------------
--- End Message ---
--- Begin Message ---
Timothy,
It looks like the script isn't getting executed, check your apache conf.
make sure it knows how to run .php's and is loading the php module.
-----Original Message-----
From: Timothy Hora [mailto:[EMAIL PROTECTED]
Sent: Saturday, July 19, 2003 7:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Question
Hi!
I Installed an compiled the original php4.3.2 also i installed the
mod_php4-4.2.2-117.i586.rpm.
I copied the php.ini file in the right folder an edit them with
safe_mode = off
Now my Problem...
I restartet apache with /etc/init.d/apache restart
No Erros Message comes up.
so than i copied the run-tests.php and run-tests2-php in the public html
folder
i tried to access over the browser: http://63.246.134.185/run-tests2.php
There comes up the errormessage "You are running this test-suite with
"safe_mode"ENABLED!; Chances are high that none of the tests will work
at all, depending on how you configured "safe_mode""
So i looked up for all php.ini files on the system and edit them.
nothing happens. than i deleted all php.ini files from the system.
It also works now nothing. Can anybody help me cause i'm loosing my mind
and get aggressive... :o)
Sorry my English is horrable
Nice greets from Austria
Timothy Hora
--- End Message ---
--- Begin Message ---
Try posting to the BUGS mailing list.
/me quotes "For information on how your program can cause an asserion
failure, see the Visual C++ documentation on asserts."
Or consult your VC+++ documentation... ROFL
-----Original Message-----
From: twitch [mailto:[EMAIL PROTECTED]
Sent: Friday, July 18, 2003 4:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Debug Assertion deep inside php_execute_script() on
an SAPI.
Hi,
I am trying to get a PHP 4.3.2 SAPI working on Windows.
I am using Visual Studio 6.0 and am using the Debug Release
(php4ts_debug.dll).
I can successfully get the CLI (phpCLI.c) version of PHP working just
fine
using the same linking instructions as I do for my SAPI program.
My SAPI is heavily based off the thttpd sample SAPI.
Right now I am getting a "Microsoft Visual C++ Debug Library" assertion:
--- Begin Dialog Contents ---
Debug Assertion Failed!
Program: c:\work\out\bin\phpServerHarness.exe
File: fdopen.c
Line: 54
Expression: _osfile(filedes) & FOPEN
For information on how your program can cause an asserion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application).
--- End Dialog Contents ---
Here is the code from fdopen.c:
--- Begin Code ---
FILE * __cdecl _tfdopen (
int filedes,
REG2 const _TSCHAR *mode
)
{
REG1 FILE *stream;
int whileflag, tbflag, cnflag;
_ASSERTE(mode != NULL);
#if defined (_WIN32)
_ASSERTE((unsigned)filedes < (unsigned)_nhandle);
_ASSERTE(_osfile(filedes) & FOPEN); // <------------ THIS
ASSERT
if ( ((unsigned)filedes >= (unsigned)_nhandle) ||
!(_osfile(filedes) & FOPEN) )
return(NULL);
#else /* defined (_WIN32) */
--- End Code ---
This is the stack at the time of the assert:
--- Begin Stack ---
> MSVCRTD.DLL!_fdopen(int filedes=3, const char * mode=0x010d545c)
Line
54 + 0x3f C
php4ts_debug.dll!php_stdiop_cast(_php_stream *
stream=0x010d5438, int
castas=0, void * * ret=0x010ce738, void * * * tsrm_ls=0x00e39b90) Line
1580 + 0x16 C
php4ts_debug.dll!_php_stream_cast(_php_stream *
stream=0x010d5438, int
castas=0, void * * ret=0x010ce738, int show_err=8, void * * *
tsrm_ls=0x00e39b90) Line 2172 + 0x39 C
php4ts_debug.dll!_php_stream_open_wrapper_as_file(char *
path=0x00e87830, char * mode=0x102adfd4, int options=141, char * *
opened_path=0x010ceb60, int __php_stream_call_depth=0, char *
__zend_filename=0x102ae704, unsigned int __zend_lineno=762, char *
__zend_orig_filename=0x00000000, unsigned int __zend_orig_lineno=0, void
* * * tsrm_ls=0x00e39b90) Line 2718 + 0x18 C
php4ts_debug.dll!php_fopen_wrapper_for_zend(const char *
filename=0x00e87830, char * * opened_path=0x010ceb60) Line 762 + 0x31
C
php4ts_debug.dll!open_file_for_scanning(_zend_file_handle *
file_handle=0x010ceb58, void * * * tsrm_ls=0x00e39b90) Line 2982 +
0x16 C
php4ts_debug.dll!compile_file(_zend_file_handle *
file_handle=0x010ceb58, int type=2, void * * * tsrm_ls=0x00e39b90) Line
3081 + 0xd C
php4ts_debug.dll!zend_execute_scripts(int type=8, void * * *
tsrm_ls=0x00e39b90, _zval_struct * * retval=0x00000000, int
file_count=3, ...) Line 865 + 0x12 C
php4ts_debug.dll!php_execute_script(_zend_file_handle *
primary_file=0x010ceb58, void * * * tsrm_ls=0x00e39b90) Line 1671 +
0x1b C
phpServerHarness.exe!thttpd_module_main(int show_source=0, void
* * *
tsrm_ls=0x00e39b90) Line 534 + 0xe C
phpServerHarness.exe!thttpd_real_php_request(void * *
hc=0x00e38750, int
show_source=0, void * * * tsrm_ls=0x00e39b90) Line 923 + 0xd C
phpServerHarness.exe!phpcinterface_php_request(void *
hc=0x00e38750, int
show_source=0) Line 978 + 0x11 C
phpServerHarness.exe!HTTPConnectionDataSourcePHP::primePump()
Line 31 +
0xe C++
phpServerHarness.exe!HTTPConnection::handleCompleteRequest()
Line 283 C++
phpServerHarness.exe!HTTPConnection::inspectIncoming() Line 363
C++
phpServerHarness.exe!SocketConnection::readAvailable() Line 72
C++
phpServerHarness.exe!SocketWatcher::run() Line 172 C++
phpServerHarness.exe!threadLaunchFunc(void * userArg=0x00d918f0)
Line
25 C++
MSVCRTD.DLL!_threadstart(void * ptd=0x00e388f0) Line 173 + 0xd
C
KERNEL32.DLL!77e8758a()
-- End Stack ---
The place where I "lose track" (in terms of understanding) of what's
happening is in:
_php_open_wrapper_as_file()
where it takes a phpstream returned from:
php_stream_open_wrapper_rel()
and does:
if (php_stream_cast(stream,
PHP_STREAM_AS_STDIO|PHP_STREAM_CAST_TRY_HARD|PHP_STREAM_CAST_RELEASE,
(void**)&fp, REPORT_ERRORS) == FAILURE)
to it. I don't really know "what" they're trying to do from then on,
but
it goes through a few functions (see stack) and ends up at that assert.
The arguments to php_open_wrapper_as_file look correct (valid paths).
I know this is a long shot, but if anyone can help me -- give me some
kind
of pointer on where or what to look for -- libraries, languages,
ThreadSafe versus not ThreadSafe -- I'd really appreciate it. I've been
stumped for days. I don't really know how to get more information on
the
code I'm looking at.
thanks!
twitch
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---