-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #673 from heroku/php83
PHP 8.3
- Loading branch information
Showing
34 changed files
with
184 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/amqp-2.1.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/amqp |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/apcu-5.1.23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/apcu |
4 changes: 4 additions & 0 deletions
4
support/build/extensions/no-debug-non-zts-20230831/blackfire-1.92.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/blackfire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/ev |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/event-3.0.8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/event |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/imagick-3.7.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/imagick |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/memcached-3.2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/memcached |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/mongodb-1.17.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/mongodb |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/oauth-2.0.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/oauth |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/pcov-1.0.11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/pcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.*, extensions/no-debug-non-zts-20230831/raphf-2.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/pq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/psr |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/raphf-2.0.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/raphf |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/rdkafka-6.0.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.*, libraries/librdkafka-1.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/rdkafka |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/redis-6.0.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/redis |
5 changes: 5 additions & 0 deletions
5
support/build/extensions/no-debug-non-zts-20230831/uuid-1.2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
# Build Deps: php-8.3.* | ||
|
||
source $(dirname $0)/../no-debug-non-zts-20180731/uuid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
# Build Path: /app/.heroku/php | ||
|
||
source $(dirname $0)/php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
'8.0', | ||
'8.1', | ||
'8.2', | ||
'8.3', | ||
]; | ||
|
||
$findstacks = function(array $package) use($stacks) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require_relative "php_shared_boot" | ||
|
||
describe "A PHP 8.3/Apache application for testing boot options", :requires_php_on_stack => "8.3" do | ||
include_examples "A PHP application for testing boot options", "8.3", "apache2" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require_relative "php_shared_concurrency" | ||
|
||
describe "A PHP 8.3/Apache application for testing WEB_CONCURRENCY behavior", :requires_php_on_stack => "8.3" do | ||
include_examples "A PHP application for testing WEB_CONCURRENCY behavior", "8.3", "apache2" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require_relative "php_shared_boot" | ||
|
||
describe "A PHP 8.3/Nginx application for testing boot options", :requires_php_on_stack => "8.3" do | ||
include_examples "A PHP application for testing boot options", "8.3", "nginx" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require_relative "php_shared_concurrency" | ||
|
||
describe "A PHP 8.3/Nginx application for testing WEB_CONCURRENCY behavior", :requires_php_on_stack => "8.3" do | ||
include_examples "A PHP application for testing WEB_CONCURRENCY behavior", "8.3", "nginx" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
require_relative "php_shared_base" | ||
|
||
describe "A basic PHP 8.3 application", :requires_php_on_stack => "8.3" do | ||
include_examples "A basic PHP application", "8.3" | ||
|
||
context "with an index.php that allows for different execution times" do | ||
['apache2', 'nginx'].each do |server| | ||
context "running the #{server} web server" do | ||
let(:app) { | ||
new_app_with_stack_and_platrepo('test/fixtures/sigterm', | ||
before_deploy: -> { system("composer require --quiet --ignore-platform-reqs php '8.3.*'") or raise "Failed to require PHP version" } | ||
) | ||
} | ||
|
||
# FIXME: move to php_shared.rb once all PHPs are rebuilt with that tracing capability | ||
it "logs slowness after configured time and sees a trace" do | ||
app.deploy do |app| | ||
# launch web server wrapped in a 20 second timeout | ||
# once web server is ready, `read` unblocks and we curl the sleep() script which will take a few seconds to run | ||
# after `curl` completes, `wait-for.it.sh` will shut down | ||
# ensure slowlog info and trace is there | ||
cmd = "./waitforit.sh 20 'ready for connections' heroku-php-#{server} --verbose -F fpm.request_slowlog_timeout.conf | { read && curl \"localhost:$PORT/index.php?wait=5\"; }" | ||
retry_until retry: 3, sleep: 5 do | ||
output = app.run(cmd) | ||
expect(output).to include("executing too slow") | ||
expect(output).to include("sleep() /app/index.php:5") | ||
end | ||
end | ||
end | ||
|
||
it "logs slowness after about 3 seconds and terminates the process after about 30 seconds" do | ||
app.deploy do |app| | ||
# launch web server wrapped in a 50 second timeout | ||
# once web server is ready, `read` unblocks and we curl the sleep() script with a very long timeout | ||
# after `curl` completes, `wait-for.it.sh` will shut down | ||
# ensure slowlog and terminate output is there | ||
cmd = "./waitforit.sh 50 'ready for connections' heroku-php-#{server} --verbose | { read && curl \"localhost:$PORT/index.php?wait=35\"; }" | ||
retry_until retry: 3, sleep: 5 do | ||
output = app.run(cmd) | ||
expect(output).to match(/executing too slow/) | ||
expect(output).to match(/execution timed out/) | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters