mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
19 lines
363 B
PHP
19 lines
363 B
PHP
--TEST--
|
|
Test http_response_code basic functionality
|
|
--CREDITS--
|
|
Gabriel Caruso (carusogabriel@php.net)
|
|
--FILE--
|
|
<?php
|
|
var_dump(
|
|
// Get the current default response code
|
|
http_response_code(),
|
|
// Set a response code
|
|
http_response_code(201),
|
|
// Get the new response code
|
|
http_response_code()
|
|
);
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(true)
|
|
int(201)
|