Page 1 of 1

apache throws error with realpath()

Posted: Tue Jan 19, 2010 4:54 am
by incrypt
Hi,

I don't know whether this falls under an apache forum or php, so I'll just try it here.

I'm working with Zend Framework and I'm trying to move the application from a windows machine to a solaris server. Apache and PHP are installed but when I run the index.php it tries to define the APPLICATION_PATH to a location using the realpath() function. At this point apache throws the following error:

Code: Select all

Incurred fault #6, FLTBOUNDS %pc=0xFDF18A0C
 siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008
Recieved signal #11, SIGSEGV [caught]
 siginfo: SIGSEGV SEGV_MAPERR addr=0x00000008
even when I just run 'echo realpath('/home');' it throws the error above. This also happens with the function dirname(__FILE__), but __FILE__ itself echo's without problems.

Does anybody know why this is happening, and how I can solve it.

regards,

I.

Re: apache throws error with realpath()

Posted: Tue Jan 19, 2010 5:14 am
by requinix
Looks like a bug in PHP. Are you running the most recent version of whatever branch of PHP? That is, running 4.4.9 (the 4.x branch is old - upgrade to 5.2), 5.2.12, or 5.3.1?

Re: apache throws error with realpath()

Posted: Tue Jan 19, 2010 6:01 am
by incrypt
I'm running 5.3.1