Skip to content

Commit 3be1196

Browse files
committed
running on Google AppEngine
1 parent 25fa086 commit 3be1196

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

app.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
application: regexplanet-php
2+
version: 1
3+
runtime: php
4+
api_version: 1
5+
6+
handlers:
7+
- url: /robots.txt
8+
static_files: www/robots.txt
9+
upload: www/robots.txt
10+
11+
- url: /favicon.ico
12+
static_files: www/favicon.ico
13+
upload: www/favicon.ico
14+
15+
- url: /status.php
16+
script: www/status.php
17+
18+
- url: /test.php
19+
script: www/test.php
20+
21+
- url: /
22+
script: www/index.php

run-gae.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
/usr/local/google_appengine/dev_appserver.py --php_executable_path=//download/google/php-5.4.15/installdir/bin/php-cgi .

www/test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static function captureNormal($errno, $errstr, $errfile, $errline)
1010
{
1111
ErrorHandler::$m_errstr = $errstr . " (" . strval($errno) . ")";
1212

13-
//echo "CAUGHT: " . ErrorHandler::$m_errstr . " at " . $errfile . " line " . strval($errline) . "<br/>";
13+
echo "CAUGHT: " . ErrorHandler::$m_errstr . " at " . $errfile . " line " . strval($errline) . "<br/>";
1414

1515
return true;
1616
}
@@ -47,7 +47,7 @@ public static function getLastError()
4747
$regex = "/" . $original . "/";
4848
}
4949

50-
$replacement = $_REQUEST["replacement"];
50+
$replacement = isset($_REQUEST["replacement"]) ? $_REQUEST["replacement"] : null;
5151

5252
$retVal = array("success" => True);
5353

0 commit comments

Comments
 (0)