[pLog-svn] r5260 - in plog/branches/lifetype-1.2/class: filegallery/resizers

Mark Wu markplace at gmail.com
Tue Apr 3 12:21:08 EDT 2007


Good idea ...

I will do it.

Mark 

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> Oscar Renalias
> Sent: Wednesday, April 04, 2007 12:01 AM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] r5260 - in 
> plog/branches/lifetype-1.2/class: filegallery/resizers
> 
> Let's write some unit tests, I'd like to see this working 
> with real test cases...
> 
> On 3 Apr 2007, at 18:38, Jon Daley wrote:
> 
> >  	I don't get "pvollma"'s original post, with an odd number of 
> > backslashes.  What does that do?
> >>>  $tmp = preg_split("[\\\]",$newfile);
> >
> > Shouldn't there be just two backslashes?
> >
> > And then the one you got from "support" I have no idea what it is 
> > doing.
> > I see the last "\/" which makes sense, but the previous five(!) 
> > backslashes, I don't understand.  I think I would 
> understand it if it 
> > was just "\\\/"  which results in "\/" unescaped.
> >
> >
> > On Tue, 3 Apr 2007, Mark Wu wrote:
> >
> >> Hi Jon:
> >>
> >> I hope I understand what it is doing. :(
> >>
> >> I get it from php.net
> >> http://tw.php.net/manual/en/function.basename.php#62031
> >>
> >> And, it works well when I testing Chiense and English file name.
> >>
> >> I review several basename() implementations from that 
> post, I found 
> >> this one is the fastest and shortest ...
> >>
> >> If you have any idea about this, please kindly let me know.
> >>
> >> Mark
> >>
> >>> -----Original Message-----
> >>> From: plog-svn-bounces at devel.lifetype.net
> >>> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> Jon Daley
> >>> Sent: Tuesday, April 03, 2007 11:22 PM
> >>> To: plog-svn at devel.lifetype.net
> >>> Subject: Re: [pLog-svn] r5260 - in
> >>> plog/branches/lifetype-1.2/class: file gallery/resizers
> >>>
> >>>  	I don't think I want to know what this is doing.
> >>> But... what is this doing?  I can't quite parse it.  
> Seems like it 
> >>> saying remove the entire string if it is suffixed by three 
> >>> backslashes and a forward slash - no wait, there aren't the right 
> >>> number of backslashes for that.
> >>>
> >>> On Tue, 3 Apr 2007, mark at devel.lifetype.net wrote:
> >>>> Add a new File::basename() to fixed basename() error when
> >>> we use thumbnailgenerator to generate thubmnail from a image with 
> >>> CJK filename.
> >>>> +  $basename = preg_replace( '/^.+[\\\\\\/]/', '', $fileName );
> >>> _______________________________________________
> >>> pLog-svn mailing list
> >>> pLog-svn at devel.lifetype.net
> >>> http://limedaley.com/mailman/listinfo/plog-svn
> >>>
> >>
> >> _______________________________________________
> >> pLog-svn mailing list
> >> pLog-svn at devel.lifetype.net
> >> http://limedaley.com/mailman/listinfo/plog-svn
> >>
> >
> > --
> > Jon Daley
> > http://jon.limedaley.com/
> >
> > An ignorant person is one who doesn't know what you have just found 
> > out.
> > -- Will Rogers
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> >
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
> 



More information about the pLog-svn mailing list