Reply to Re: Postgres php segfault

Your name:

Reply:


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...

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация