Dmitry Koteroff | 1 Jun 01:57 2004
Picon

Re[2]: New package proposal

>> > Purpose  of my package is NOT beautifying PHP code. It is used on
>> > run-time, not while developing.
>> Anyway, shouldn't people be writing good code to begin with and not need
>> auto-correction on the fly?  Come on, how hard is it to use the proper
>> class/file name?
CG> For Windows users who don't think about case and end up distributing their
CG> source to *NIX, this could be helpfull.
CG> However, I doubt that if said Windows user knew about this package, he'd
CG> know enough to use correct caps, hopefully.
You are talking about:

require_once "a.php";
require_once "A.php";
// included twice on Windows!

Yes.  But  the  goal  of  this  package is not to correct windows
names.

CG> The on-demand/ auto-loading features however do sound interresting,
CG> especially if the class'd do more then a simple _ to / translation and
CG> globbing the inc-path for that file.
Of  course it does. In __autoload() method lovercase classname is
passed!  My  library  searches for corresponding filename (in any
case)  in the include_file directories ("_" is translated to "/")
and returns needed file name.

http://pear.php.net/pepr/pepr-proposal-show.php?id=82
http://php.dklab.ru/PEAR/NameScheme.php

  function name2path($classname, $absolutize=false) {
(Continue reading)

Dmitry Koteroff | 1 Jun 02:03 2004
Picon

Re[2]: New package proposal

>> DC> Perhaps merge it into the PHP_Beautifier project which just passed.
>> DC> http://pear.php.net/pepr/pepr-proposal-show.php?id=74
>> 
>> Purpose  of my package is NOT beautifying PHP code. It is used on
>> run-time, not while developing.
>> 

PJ> I'm not sure promoting such packages for fixes at run time is
PJ> a good idea.
What "fixes" are you talking about at all? Forget about fixes!

1. I am using the following code in my CMS templates:

{t_controller src="Test_Date" name="date" format="Y-m-d"}
        {$date}
{/t_controller}

It does:
a) searches for Test_Date class and loads it;
b) calls Test_Date::main() to generate data;
c) uses this data to insert to the page.

PEAR_NameScheme  helps  to  find  filename for class Test_Date in
include_path, no more.

2. Next example - PHP5's autoload routine.

class PEAR_NameScheme_Autoload {
  # static void classAutoloader(string $classname)
  static function classAutoloader($classname) {
(Continue reading)

Andrey Demenev | 1 Jun 04:34 2004
Picon

Registering a new package

Proposal for Text_Highlighter has been finished. I try to register the 
package at http://pear.php.net/package-new.php, and it says 
"Insufficient Privileges". Can anyone "upgrade" my PEAR account ?

-- 
Andrey Demenev aka Blindman
demenev <at> on-line.jar.ru

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Daniel Convissor | 1 Jun 06:18 2004

Re: New package proposal

Dimtry:

On Tue, Jun 01, 2004 at 04:03:54AM +0400, Dmitry Koteroff wrote:
>
> PEAR_NameScheme  helps  to  find  filename for class Test_Date in
> include_path, no more.

Why do we need a package and all its overhead to do something so basic as 
typing/executing
    require_once 'Test_Date';

On Tue, Jun 01, 2004 at 03:57:35AM +0400, Dmitry Koteroff wrote:
>
> Of  course it does. In __autoload() method lovercase classname is
> passed!

Lovercasing.  Now, THAT I approve of.  We all need more casing of our 
lovers.  I hope to be doing that with my lover in a few minutes!

Nighty night!

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

--

-- 
(Continue reading)

Claudio Bustos | 1 Jun 07:46 2004
Picon

Re: Registering a new package

At 13:34 01-06-2004 +1100, you wrote:
>Proposal for Text_Highlighter has been finished. I try to register the 
>package at http://pear.php.net/package-new.php, and it says "Insufficient 
>Privileges". Can anyone "upgrade" my PEAR account ?
>
>--

You should send a e-mail to pear-group <at> php.net with information about your 
package. The process isn't, yet, automatic.
Hey, the guys are very nice!

http://pear.php.net/manual/en/developers.contributing.howto.php
Claudio Bustos Navarrete
Psicólogo de la Universidad de Concepción
E-mail: clbustos <at> entelchile.net
Www: http://www.apsique.com

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

PEPr | 1 Jun 11:03 2004
Picon
Picon

[PEPr] Comment on Internationalisation::Locale_Maketext


Michael Wallner (http://pear.php.net/user/mike) has commented on the proposal for Internationalisation::Locale_Maketext.

Comment:

I don't know what Jürgen is waiting for, so I just try to raise the discussion again :)

Although we already outlined its deficiencies, I'd appreciate its inclusion in PEAR due to its advantages.

Are we OK with the name? I could also see it as Text_Maketext, although "text" would be redundant, it looks
quite comprehensive.

Method names should also be studlyCaps - yeah nit-picking :)

Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=44

-- 
Sent by PEPr, the automatic proposal system at http://pear.php.net

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

PEPr | 1 Jun 11:12 2004
Picon
Picon

[PEPr] Comment on Images::Imagick


Michael Wallner (http://pear.php.net/user/mike) has commented on the proposal for Images::Imagick.

Comment:

The API looks quite powerfull and I'm looking forward to have a handy imagick class available.

Please make the source code available online (clikcing on "source" in the docs currently results in an
server error).

Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=64

-- 
Sent by PEPr, the automatic proposal system at http://pear.php.net

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Dmitry Koteroff | 1 Jun 12:52 2004
Picon

Re[2]: New package proposal

DC> Why do we need a package and all its overhead to do something so basic as
DC> typing/executing
DC>     require_once 'Test_Date';
Because class names in PHP are case-insensitive, but class loader
MUST   be  case-sensitive  to  load  the  file.  This  should  be
automatized (ideologically).

-- 
Best regards,
  Dmitry Koteroff.

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Daniel Convissor | 1 Jun 16:05 2004

Re: New package proposal

Sire:

On Tue, Jun 01, 2004 at 02:52:10PM +0400, Dmitry Koteroff wrote:
>
> Because class names in PHP are case-insensitive, but class loader
> MUST   be  case-sensitive  to  load  the  file.  This  should  be
> automatized (ideologically).

Again, what's so hard about writing the name right in the first place?  
It's not.  So, adding on the overhead of a package just to perform case 
conversion is a waste.

Of course, feel free to propose your package via PEPr and see what 
happens.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

--

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Greg Beaver | 1 Jun 16:56 2004
Picon
Picon

PEAR 1.4.0dev5 is available - with installable unit tests

Hi,

http://www.chiaraquartet.net/PEAR-1.4.0dev5.tgz

includes a bunch of bugfixes to make the unit tests work.  I also put 
some time into making the unit tests installable and workable.

The unit tests for PEAR_Downloader use a mock pearweb object to simulate 
downloading from pearweb and to simulate xml-rpc calls.  This means 
anyone can run any of the tests.

To run the tests, grab a copy of the current cvs of php-src/pear/tests., 
and a copy of run-tests.php from php-src/run-tests.php.  Be sure you 
grab the PHP_4_3 branch of run-tests.php if you want to test in PHP 4!!

Then, run

$ pear install package-PEARtests.xml

note that you have to have the right version of packages installed, like 
PEAR 1.4.0dev5, or the tests won't install (thank you <dep> tag)

You might find it useful to have a little script you can use like this one:

<?php
putenv('TEST_PHP_EXECUTABLE=C:\php4\cli\php.exe');
putenv('TEST_PHP_DETAILED=1');
if (isset($_SERVER['PHP_SELF'])) {
     echo '<pre>';
}
(Continue reading)


Gmane