com php-src: ...: web-bootstrap.php
| From: | Bob Weinand | Date: | Tue, 12 Nov 2013 07:01:28 +0000 |
| Subject: | com php-src: ...: web-bootstrap.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75077@lists.php.net to get a copy of this message | ||
Commit: 25475ff95e1f1f30df22bc0d920692f92c199a2f
Author: krakjoe <joe.watkins@live.co.uk> Tue, 12 Nov 2013 07:01:28 +0000
Parents: 4b2490426f46d360345d353b94c5b4a03c38a92a
Branches: PHP-5.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=25475ff95e1f1f30df22bc0d920692f92c199a2f
Log:
..
Changed paths:
M web-bootstrap.php
Diff:
diff --git a/web-bootstrap.php b/web-bootstrap.php
index c5802c1..fdb40f9 100644
--- a/web-bootstrap.php
+++ b/web-bootstrap.php
@@ -1,8 +1,21 @@
<?php
+/**
+ * The following file shows how to bootstrap phpdbg so that you can mock specific server
environments
+ *
+ * eval include("web-bootstrap.php")
+ * exec index.php
+ * compile
+ * break ...
+ * run
+ */
define("PHPDBG_BOOTPATH", "/opt/php-zts/htdocs");
define("PHPDBG_BOOTSTRAP", "index.php");
define("PHPDBG_BOOTSTRAPPED", sprintf("/%s", PHPDBG_BOOTSTRAP));
+/*
+ * Superglobals are JIT, phpdbg will not over-write whatever you set during bootstrap
+ */
+
$_SERVER = array
(
'HTTP_HOST' => 'localhost',