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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 - 9 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC