FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-src/tests/classes/constants_error_003.phpt at master · php/php-src · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
php
/
php-src
Public
Notifications
You must be signed in to change notification settings
Fork
8.1k
Star
40.3k
Code
Issues
961
Pull requests
1.1k
Actions
Security and quality
52
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
php-src
/
tests
/
classes
/
constants_error_003.phpt
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (20 loc) · 408 Bytes
Breadcrumbs
php-src
/
tests
/
classes
/
constants_error_003.phpt
Copy path
File metadata and controls
22 lines (20 loc) · 408 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Basic class support - attempting to pass a class constant by reference.
--FILE--
<?php
class
aclass
{
const
myConst
=
"
hello
"
;
}
function
f
(&
$
a
)
{
$
a
=
"
changed
"
;
}
f
(aclass::myConst);
var_dump
(aclass::myConst);
?>
--EXPECTF--
Fatal error: Uncaught Error: f(): Argument #1 ($a) could not be passed by reference in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
Back
|
FazBrowse Home
|
New Git URL