php-install Digest 29 Apr 2002 18:20:50 -0000 Issue 810

Topics (messages 6768 through 6774):

PHP error when starting Apache, Undefined symbol "pthread_getspecific", what's this???
        6768 by: Marcus Uddenhed

PHP_SELF
        6769 by: Scott McAnally
        6770 by: Jim Thome
        6771 by: LIMBOURG Arnaud

Apache 2.0.35 and PHP 4.2
        6772 by: Brian Speck

Help compiling dynamically linked module
        6773 by: Lang, Jeff

PATH_TRANSLATED w/ apache 2.0 module?
        6774 by: Neulinger, Nathan

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 ---
I get an error when i try to start Apache
when i have made PHP as an module.

The error says:

Cannot load /websrv/progrs/apache2/modules/libphp4.so
into server: /websrv/progrs/apache2/modules/libphp4.so: Undefined Symbol
"pthread_getspecific"

And Apache refuses to start.

This is how i configured PHP and installed it:

./configure --prefix=/websrv/progs/php --with-mysql --with-apxs2=/websrv/pro
gs/apache2/bin/axps

make

make install --with-config-file-path=/websrv/progs/php

The system that i do this on is FreeBSD 4.5


What is wrong, what  have i done wrong????


Thanks in advance

Marcus Uddenhed
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
I am relatively new to PHP, but I have a problem that no one else has talk
about, so I'm guessing it's something simple.
I'm running PHP on WinXP (with IIS). I upgraded from PHP 4.1.2 to PHP 4.2,
and now all of of my scripts that use the variable PHP_SELF do not work.
Undefined variable.
I figured I had done something wrong, but when I uninstalled PHP 4.2 and
reinstalled 4.1.2 all of my scripts worked again.
Scratch, scratch. Please help.
Scott


--- End Message ---
--- Begin Message ---
Scott--

The variable PHP_SELF requires the directive "register_globals" (automatically create 
variables) to be on, which it is by default in PHP < 4.2.  For security reasons, 
enabling this directive IS NOT a good idea, and the default installation has been 
changed in PHP 4.2.  For more information, read this: 
http://www.php.net/release_4_2_0.php

Instead, use $_SERVER['PHP_SELF'] for your scripts to work in PHP 4.2.

Regards,

--Jim


>>> "Scott McAnally" <[EMAIL PROTECTED]> 04/29/02 08:56AM >>>
I am relatively new to PHP, but I have a problem that no one else has talk
about, so I'm guessing it's something simple.
I'm running PHP on WinXP (with IIS). I upgraded from PHP 4.1.2 to PHP 4.2,
and now all of of my scripts that use the variable PHP_SELF do not work.
Undefined variable.
I figured I had done something wrong, but when I uninstalled PHP 4.2 and
reinstalled 4.1.2 all of my scripts worked again.
Scratch, scratch. Please help.
Scott



-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php 


--- End Message ---
--- Begin Message ---
hello,

it is probably because in 4.2 register globals are set to off by default.

you have two choices:

1. do a search and replace on your scripts looking for $PHP_SELF and
changing it to $_SERVER['PHP_SELF']

2. assuming you use a common config file you can add $PHP_SELF =
$_SERVER['PHP_SELF']

Regards,

> I am relatively new to PHP, but I have a problem that no one 
> else has talk
> about, so I'm guessing it's something simple.
> I'm running PHP on WinXP (with IIS). I upgraded from PHP 
> 4.1.2 to PHP 4.2,
> and now all of of my scripts that use the variable PHP_SELF 
> do not work.
> Undefined variable.
> I figured I had done something wrong, but when I uninstalled 
> PHP 4.2 and
> reinstalled 4.1.2 all of my scripts worked again.
> Scratch, scratch. Please help.
> Scott
> 
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
I was wondering if the issue with dynamic modules within Apache was
fixed with this version.
 
I tried when it was 4.2RC3 and could not get the --with-apxs2
To work..
 
I was wondering if it was working now?
 
Brian Speck

--- End Message ---
--- Begin Message ---
I am trying to compile and run the tutorial, from the php documentation, on extending 
php.
 
I am currently working in SunOS v5.7 with gcc version 2.95 19990728.  I am running PHP 
4.2.0 statically in Apache 1.3.24 
 
I have copied the first_module.c file and I can compile it with the following command
 
~~~/php-4.2.0/ext> gcc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I../main -I../TSRM 
-I. -I.. -I../Zend -c -o first_module/first_module.o first_module/first_module.c
 
I can also link with the following command
~~~/php-4.2.0/ext>gcc -shared -L/usr/local/lib -dynamic -o 
first_module/first_module.so first_module/first_module.o
 
I then copy this module to the working directory of my php script and call it like 
this:
<?
dl("first_module.so");
 
$param = 2;
$return = first_module($param);
 
print("We sent '$param' and got '$return'");
?>
 
the file has execute and read permissions set for all users.
 
the file is located by php, but I get this error:
 Warning: Invalid library (maybe not a PHP library) 'first_module.so' in 
/export/home/jlang/htdocs/phpscript/modtest.php on line 5
 
can anyone help me find out why this file is not correctly loading
 
Thanks,
Jeff Lang
--- End Message ---
--- Begin Message ---
Is there any way to get PATH_TRANSLATED to work with the apache 2.0
filter like it does with the cgi?

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       EMail:  [EMAIL PROTECTED]
University of Missouri - Rolla         Phone: (573) 341-4841
Computing Services                       Fax: (573) 341-4216
--- End Message ---

Reply via email to