[wp-trac] [WordPress Trac] #29544: WP_Filesystem_MockFS permissions support

WordPress Trac noreply at wordpress.org
Wed Oct 8 04:04:04 UTC 2014


#29544: WP_Filesystem_MockFS permissions support
------------------------------+--------------------
 Reporter:  mnelson4          |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  4.1
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+--------------------

Comment (by dd32):

 It makes sense to expand the coverage of the MockFS classes, originally I
 implemented the bare basics so that it was possible to test the feature I
 was looking at (which required nothing more than directory transversal).

 It might be a good idea to look at alternative Virtual Filesystems which
 exist in the PHP land before investing too heavily here, for example:
 - https://github.com/adlawson/vfs.php  (MIT PHP 5.4)
 - https://github.com/thornag/php-vfs  (GPL3+ PHP 5.4)
 - https://github.com/mikey179/vfsStream (BSD PHP 5.3)

 If we can leverage one of these existing projects (and contribute back any
 features we need) I think we'll be much better off than just implementing
 a bunch of extra features ourselves.

 Most of these projects seem to be using extra PHP streams functionality in
 PHP 5.4, I don't think that's a blocker to using them though.

 Does anyone else have any thoughts here?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29544#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list