Needs review
Project:
CTools Auto-modal
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Feb 2012 at 12:02 UTC
Updated:
2 Jan 2013 at 16:57 UTC
Jump to comment: Most recent file
Comments
Comment #1
chx commentedAye but that patch is waaaaaay too little. My patch is PHP 5.3 anyone is welcome to convert down to 5.2.
Comment #2
dave reidI need comments. Because I'm a dumb maintainer.
Comment #3
catchI'm seeing these when installing an install profile, likely just needs an empty() check for when no paths are modal.
Comment #4
dave reid@catch Unrelated error or error that happens with either of the patches applied?
Comment #5
catchJust the latest patch.
Comment #6
wojtha commentedTrying to fix the bugs reported by catch in #3
Comment #7
jlyon commentedThis will throw a fatal error on php < 5.3 because of the line:
$convert_to_regexp = function ($value) { return preg_replace('/%[^\/]*/', '[^/]+', $value); };.Any possible work-arounds? See https://github.com/wojtha/ctools_automodal/issues/1.
Edit: @chx: Obviously you knew that it was php 5.3 because you mentioned it in your post. Sorry for not catching it. I think it is important to make it work in php 5.2 for the issues outlined in the github issue. I'll see if I can figure it out.
Comment #8
jlyon commentedThis update to #6 makes the patch work with php < 5.3.
Comment #9
chx commentedJust FYI, the last bugfix release of 5.2 was two years ago. The last security update was 1.5 years ago. I know, I know. But, still.
Comment #10
acrollet commentedre-roll of #8 attached. This makes 2 changes:
1) The not-modal regexp was too greedy when there were no paths in it (@^@)
2) Adds comments per #2
Comment #12
acrollet commentedupdated patch attached, applies properly against head and eliminates a notice.