php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64246 stream_metadata constants not defined
Submitted: 2013-02-19 20:00 UTC Modified: 2013-03-03 00:34 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: terrafrost@php.net Assigned: bjori (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.4.11 OS: Windows 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: terrafrost@php.net
New email:
PHP Version: OS:

 

 [2013-02-19 20:00 UTC] terrafrost@php.net
Description:
------------
<http://www.php.net/manual/en/streamwrapper.stream-metadata.php> mentions a bunch 
of constants but none appear to be defined.

Test script:
---------------
<?php
echo PHP_STREAM_META_TOUCH . "\n";
echo PHP_STREAM_META_OWNER_NAME . "\n";
echo PHP_STREAM_META_OWNER . "\n";
echo PHP_STREAM_META_GROUP_NAME . "\n";
echo PHP_STREAM_META_GROUP . "\n";
echo PHP_STREAM_META_ACCESS . "\n";

Expected result:
----------------
1
2
3
4
5
6


Actual result:
--------------
PHP_STREAM_META_TOUCH
PHP_STREAM_META_OWNER_NAME
PHP_STREAM_META_OWNER
PHP_STREAM_META_GROUP_NAME
PHP_STREAM_META_GROUP
PHP_STREAM_META_ACCESS

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-03 00:34 UTC] bjori@php.net
Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=329623
Log: Fixed bug#64246 (stream_metadata constants not defined)
# The userspace constants are without the PHP_ prefix :)
 [2013-03-03 00:34 UTC] bjori@php.net
-Status: Open +Status: Closed -Package: Streams related +Package: Documentation problem -Assigned To: +Assigned To: bjori
 [2013-03-03 00:34 UTC] bjori@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Feb 16 14:01:31 2025 UTC