We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 994a36a commit 964fe66Copy full SHA for 964fe66
test/deploy/linux/php/docker-templates/Dockerfile
@@ -1,5 +1,5 @@
1
FROM php:8.2-cli
2
COPY . /usr/src/myapp
3
WORKDIR /usr/src/myapp
4
-EXPOSE 88
+EXPOSE 80
5
CMD [ "php", "index.php" ]
test/deploy/linux/php/docker-templates/index.php
@@ -5,8 +5,13 @@
// Function to print "Hello, World!"
6
function printHelloWorld() {
7
echo "Hello, World!\n";
8
- ob_flush();
9
- flush();
+ if (extension_loaded('newrelic')) { // Ensure PHP agent is available
+ newrelic_background_job(false);
10
+ }
11
+ if (ob_get_length()) {
12
+ ob_flush();
13
+ flush();
14
15
}
16
17
// Print "Hello, World!" initially
0 commit comments