# TSRM/tsrm_virtual_cwd.*

- Thread: https://externals.io/message/39968
- Original archive: https://news-web.php.net/php.internals/39968
- Started by Uwe Pries on 2008-08-14T21:17:40+00:00
- Messages: 6
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #39968 — Uwe Pries — 2008-08-14T21:17:40+00:00

URL: https://externals.io/message/39968#39968

Hello internals,

I use following configure script to build PHP 5.3.0alpha2-dev:

#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs2=/usr/local/apache/current/bin/apxs' \
'--with-config-file-path=/etc' \
'--enable-maintainer-zts' \
"$@"

With this config (here's my real one: 
http://home.digartis.de/tmp/config.nice), I get following error on every 
request to a PHP script:

[Wed Aug 13 10:36:53 2008] [error] [client 88.84.153.102] PHP Fatal 
error:  Unknown: Failed opening required '/var/www/htdocs/test.php'
               (include_path='.:/usr/local/lib/php') in Unknown on line 0
[Wed Aug 13 10:46:12 2008] [error] [client 88.84.153.102] PHP Warning: 
Unknown: failed to open stream: Not a directory in Unknown on line 0

since that change:
http://home.digartis.de/tmp/tsrm_virtual_cwd.diff

Switching to a previous revisions or without ZTS support won't cause any 
problems.

Regards
Uwe

---

## #39974 — Antony Dovgal — 2008-08-15T07:33:06+00:00

URL: https://externals.io/message/39968#39974 · In reply to: #39968

> Hello internals,
> 
> I use following configure script to build PHP 5.3.0alpha2-dev:
> 
> #! /bin/sh
> #
> # Created by configure
> 
> './configure' \
> '--with-apxs2=/usr/local/apache/current/bin/apxs' \
> '--with-config-file-path=/etc' \
> '--enable-maintainer-zts' \
> "$@"

Please run `/usr/local/apache/current/bin/httpd -V` and paste the output here.

-- 
Wbr, 
Antony Dovgal

---

## #39975 — Antony Dovgal — 2008-08-15T07:55:40+00:00

URL: https://externals.io/message/39968#39975 · In reply to: #39968

> Hello internals,
> 
> I use following configure script to build PHP 5.3.0alpha2-dev:
> 
> #! /bin/sh
> #
> # Created by configure
> 
> './configure' \
> '--with-apxs2=/usr/local/apache/current/bin/apxs' \
> '--with-config-file-path=/etc' \
> '--enable-maintainer-zts' \
> "$@"

It just tried to reproduce this with prefork/worker apaches and PHP/ZTS, 
but no luck - it still works fine.

I guess we'll need some more info. A backtrace would be very useful.
First, please update your checkout and rebuild everything from scratch.
Then do the following:

gdb /usr/local/apache/current/bin/httpd
gdb> b zend_error
(it'll ask you if the function is expected to be in a not yet loaded lib, press Y)
gdb> r -X
(go the browser and refresh it, it should stop on the breakpoint)
gdb> bt full
(paste the output here)

-- 
Wbr, 
Antony Dovgal

---

## #39976 — Antony Dovgal — 2008-08-15T08:04:27+00:00

URL: https://externals.io/message/39968#39976 · In reply to: #39975

> 
> > […]

Oh, and don't forget to add --enable-debug here.

-- 
Wbr, 
Antony Dovgal

---

## #39978 — Uwe Pries — 2008-08-15T11:43:19+00:00

URL: https://externals.io/message/39968#39978 · In reply to: #39976

Hello Tony,

please look at http://phpfi.com/343743

Regards
Uwe


Antony Dovgal schrieb:
> 
> > […]
> 
> Oh, and don't forget to add --enable-debug here.

---

## #39979 — Uwe Pries — 2008-08-15T14:22:38+00:00

URL: https://externals.io/message/39968#39979 · In reply to: #39978

Works like a charm after cvs up and rebuild.

Thanks to all supporters.

Regards
Uwe


Uwe Pries schrieb:
> Hello Tony,
> 
> please look at http://phpfi.com/343743
> 
> Regards
> Uwe
> 
> 
> Antony Dovgal schrieb:
> > […]
