On 26.10.2009, at 06:18, Felix Gilcher wrote:
I've been having a short look (out of curiosity) and I somewhat doubt that either one is easily fixable. The main underlying problem is that zodiacal-light:~ fgilcher$ touch test zodiacal-light:~ fgilcher$ php -a php > echo realpath('./Test'); /Users/fgilcher/Test php > new SplFileInfo('./Test'); php > $finfo = new SplFileInfo('./Test'); php > echo $finfo->getRealPath(); /Users/fgilcher/Test php > echo $finfo->getFileName(); Test php > $fp = fopen('./Test', 'rw'); php > var_dump(stream_get_meta_data($fp)); array(9) { ["wrapper_type"]=> string(9) "plainfile" ["stream_type"]=> string(5) "STDIO" ["mode"]=> string(2) "rw" ["unread_bytes"]=> int(0) ["seekable"]=> bool(true) ["uri"]=> string(6) "./Test" ["timed_out"]=> bool(false) ["blocked"]=> bool(true) ["eof"]=> bool(false) } php > var_dump(glob('./Test')); array(1) { [0]=> string(6) "./Test" } php > var_dump(glob('./test')); array(1) { [0]=> string(6) "./test" } And so on. The only solution I found so far is iterating over the whole directory and trying to find something that matches in letters but not in case. All other functions just lie and return the name you gave them. However, if we fix #1169 and create the necessary code we can also introduce the code to warn on #1168 as I proposed earlier, that's just a config option and three lines of code in AgaviContext::getModel(). felix On Oct 26, 2009, at 1:23 PM, David Zülke wrote:On 26.10.2009, at 05:01, Michal Charemza wrote:However, there is the PHP class name issue. PHP classes seem to be case sensitive on all systems, so I would argue it's better that the arguments to getModel and agavi action-create be treated more like parts of the PHP class names, which are case sensitive.They aren't case sensitive, which is part of the problem. Mind you we also lowercase module names for the module config directives (e.g. "Default" yields "modules.default.enabled"), which is something we cannot change for BC reasons. We had this discussion three or four years ago and ultimately opted to not try and fix it, because it's just not worth it. I will close the respective ticket as wontfix later unless there are objections. #1169 on the other hand looks like something we can actually fix. - David _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users-- Felix Gilcher Bitextender GmbH Paul-Heyse-Str. 6 D-80336 München T: +49 89 57 08 15 16 F: +49 89 57 08 15 17 M: +49 172 840 88 28 [email protected] http://www.bitextender.com/ Amtsgericht München, HRB 174280 Geschäftsführer: David Zülke, Florian Clever _______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ users mailing list [email protected] http://lists.agavi.org/mailman/listinfo/users
