Bug #60693 [Opn->Spm]: bug list
Edit report at https://bugs.php.net/bug.php?id=60693&edit=1
ID: 60693
Updated by: rasmus@php.net
Reported by: droit at angosso dot net
Summary: bug list
-Status: Open
+Status: Spam
Type: Bug
Package: Performance problem
Operating System: OS GNU/Linux Ubuntu
PHP Version: trunk-SVN-2012-01-09 (SVN)
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2012-01-11 14:09:34] droit at angosso dot net
Example #60694 [www.angosso.net/angosso/angosso.aspx]
# List the configure usage extensions
$ php configure.php
# Choose a language (like Japanese), the default is English
# Note: This assumes you checked out ja either as phpdoc-ja or phpdoc-all
$ php configure.php --with-lang=ja
# If a validation error occurred that requires additional debugging info then
# this (--enable-xml-details) memory intensive option may help
$ php configure.php --enable-xml-details
# Force a save even when the XML document is invalid
$ php configure.php --force-dom-save
# To configure one specific book, with APC as an example. This will create
# .manual.book.apc.xml instead of .manual.xml and although slightly faster
# it's not preferred. Consider creating .manual.xml and use PhD to choose ids
# as later described in this HOWTO
$ php configure.php --partial=book.apc
Note: The future of configure.php
------------------------------------------------------------------------
[2012-01-09 23:28:10] droit at angosso dot net
Description:
------------
---
From manual page: http://www.php.net/security.apache
---
open_basedir dynamically and virtual host PHP script on a virtual host is document root.
Angosso:
<VirtualHost www.angosso.com>
ServerName www.angosso.com
DocumentRoot /www-home/angosso.com
[...]
<Location />
php_admin_value open_basedir \ "/www-home/angosso.com/:/usr/lib/php/"
</Location>
</VirtualHost>
Test script:
---------------
Angosso:
<VirtualHost www.angosso.com>
ServerName www.angosso.com
DocumentRoot /www-home/angosso.com
[...]
<Location />
php_admin_value open_basedir \ "/www-home/angosso.com/:/usr/lib/php/"
</Location>
</VirtualHost>
Expected result:
----------------
<HTML>
<HEAD><TITLE>list bug</TITLE></HEAD>
<BODY BGCOLOR=White>
<TABLE BORDER=1>
<?php
$a = "Yes";
$b = "no";
if("x" == "y"){
list($m,$n) = "";
}
print "<TR><TD>$a</TD><TD>$b</TD></TR>\n";
?>
</TABLE>
</BODY>
</HTML>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60693&edit=1
Thread (3 messages)