Home » File Formats » MP3_IDv2 » Bug #9894
Directory name capitalization mishmash causes error on case-aware OS
Details
| Submitted | 2007-01-20 20:15 UTC |
|---|---|
| From | siudak at xz dot pl |
| Assigned | alexmerz |
| Status | Closed |
| Package | MP3_IDv2 |
| PHP Version | 5.1.6 |
| OS | Fedora Core 6 Linux |
| Roadmaps | (Not assigned) |
Comments
[2007-01-20 20:15 UTC] siudak at xz dot pl
Description:
------------
While reading MP3/IDv2/Reader.php application fails to find MP3/Idv2/Tag.php , due to a typo in directory name
Idv2 instead of IDv2. I think it does not make any difference in win32 environment.
Changing this two lines solves the problem
### Eclipse Workspace Patch 1.0
#P MP3_IDv2
Index: IDv2/Reader.php
===================================================================
RCS file: /repository/pear/MP3_IDv2/IDv2/Reader.php,v
retrieving revision 1.2
diff -u -r1.2 Reader.php
--- IDv2/Reader.php 10 Oct 2006 04:52:47 -0000 1.2
+++ IDv2/Reader.php 20 Jan 2007 19:54:12 -0000
@@ -36,12 +36,12 @@
/**
* load the tag data structure
*/
-require_once 'MP3/Idv2/Tag.php';
+require_once 'MP3/IDv2/Tag.php';
/**
* load the generic frame data strucure
*/
-require_once 'MP3/Idv2/Frame.php';
+require_once 'MP3/IDv2/Frame.php';
/**
* error number, if a file couldn't be found
Test script:
---------------
<?php
require_once 'PEAR.php';
require_once 'MP3/IDv2/Reader.php';
echo "finished execution";
?>
Expected result:
----------------
finished execution
Actual result:
--------------
Warning: require_once(MP3/Idv2/Tag.php) [function.require-once]: failed to open stream: No such file or directory in MP3/IDv2/Reader.php on line 39
finished execution
[2007-01-22 02:24 UTC] alexmerz at php dot net
This bug has been fixed in CVS.
If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.