Doc #61044 [Ver->Csd]: invalid PHP_BINDIR
| From: | cmb@php.net | Date: | Fri, 12 Feb 2021 13:35:28 +0000 |
| Subject: | Doc #61044 [Ver->Csd]: invalid PHP_BINDIR | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18534@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61044&edit=1
ID: 61044
Updated by: cmb@php.net
Reported by: bugzilla33 at gmail dot com
Summary: invalid PHP_BINDIR
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Unknown/Other Function
Operating System: win 7
PHP Version: 5.4.0RC7
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=2b06e6be136cb98831e837b6557d722868bf601c
Log: Fix #61044: invalid PHP_BINDIR
Previous Comments:
------------------------------------------------------------------------
[2021-02-12 13:12:20] cmb@php.net
At this point in time, I don't think it would be reasonable to
change the behavior of these constants for BC reasons, and also
since the directory structures are different on Windows and other
systems anyway. Instead the behavior should be properly
documented.
------------------------------------------------------------------------
[2012-07-24 17:25:03] martin dot leucht at gmail dot com
Just to mention: On my configuration (PHP 5.4.4, Win 7) at least the value for
PHP_BINARY is correct. Maybe this helps to create a work-around.
------------------------------------------------------------------------
[2012-02-11 11:10:04] johannes@php.net
rk, that is correct, but on non-Windows you usually don't relocate the installation. Either you
install using your package manager or by compiling yourself with a proper prefix, everything else is
unsupported. On Windows we have the installer (which defaults to c:\program files\php (system
dependent)) and the zip where people almost certainly won't use c:\php
------------------------------------------------------------------------
[2012-02-11 08:30:04] rk at srsbiz dot pl
It is not only Windows problem:
root@core /# /root/src/php5.4-201202102030/sapi/cli/php -r 'echo PHP_BINDIR . PHP_EOL;';
/usr/local/php54/bin
root@core /#
It always point to directory provided in --prefix at compile time.
------------------------------------------------------------------------
[2012-02-10 22:19:06] johannes@php.net
This is defined while compiling PHP (prefix-option from compile.js), the way to fix this would be to
do some run-time detection, not sure whether there's a proper way.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=61044
--
Edit this bug report at https://bugs.php.net/bug.php?id=61044&edit=1