]> granicus.if.org Git - php/commitdiff
...
authorkrakjoe <joe.watkins@live.co.uk>
Tue, 12 Nov 2013 07:01:28 +0000 (07:01 +0000)
committerkrakjoe <joe.watkins@live.co.uk>
Tue, 12 Nov 2013 07:01:28 +0000 (07:01 +0000)
web-bootstrap.php

index c5802c1e3c22febce4ebec8323da09a8bb0d46c5..fdb40f92b438801d70a5106e0534fc995dd97e3a 100644 (file)
@@ -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',