Posted by IDK on 07/12/07 13:45
On Jul 11, 3:50 pm, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
> IDK wrote:
> > I didn't get this error like yesterday.
>
> Does this script output the same in both mod_php and php-cgi?
>
> <?php
> echo posix_getuid()."\n";
> echo posix_getgid()."\n";
> echo posix_geteuid()."\n";
> echo posix_getegid()."\n";
> echo get_cfg_var('extension_dir')."\n";
> echo phpversion()."\n";
> echo phpversion('pgsql')."\n";
> ?>
>
When I run the script with mod_php I get the following output:
#!/usr/bin/php-cgi 33 33 33 33 5.2.3-1+b1
And then take a look at the following session:
idk@scaleo:/var/www/zerus$ ./test2
X-Powered-By: PHP/5.2.3-1+b1
Content-type: text/html
1000
1000
1000
1000
5.2.3-1+b1
idk@scaleo:/var/www/zerus$ sudo su www-data
sh-3.1$ ./test2
X-Powered-By: PHP/5.2.3-1+b1
Content-type: text/html
33
33
33
33
5.2.3-1+b1
sh-3.1$ ./test
X-Powered-By: PHP/5.2.3-1+b1
Content-type: text/html
Segmentation fault
sh-3.1$
Which means that group id and user id doesn't matter...
The other values are as you see null, which cannot be good...
Navigation:
[Reply to this message]
|