Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

url wrappers that dont support stat() wont work with is_readable() #2

Closed
vlinder opened this issue Jan 14, 2011 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@vlinder
Copy link

vlinder commented Jan 14, 2011

HTTP and HTTPS are atleast two wrappers that dont support the stat() function. Here are some referenses. (http://se.php.net/manual/en/wrappers.http.php)

To get the CFPropertyList to work with http-urls i had to comment out the is_readable line in CFPropertyList.php:189

//if(!is_readable($file)) throw IOException::notReadable($file);

From what i can tell it throws exceptions at all other file read locations anyway so is that line really necessary? Could you write around is_readable and use something else?

@rodneyrehm
Copy link
Contributor

There is a function to parse a given string:

$source = file_get_contents( 'http://example.com/foobar.plist' );
$plist->parse( $source );

the load() method is for filesystem access only.

@ajsb85 ajsb85 added this to the 2.0 milestone Apr 18, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants