blob: bc2775f3d331a4856fe44af7184d869dde931f24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--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)
|