Re: [PHP-DEV] where is the source is nl2br()?

2001-03-03 Thread Zeev Suraski

You probably want to mess with php_char_to_str() in ext/standard/string.c

It should probably wait until we branch away for 4.0.5, though.

Zeev

At 03:39 3/3/2001, Lucas Rockwell wrote:
>hi,
>
>i know the subject of changing the source code for the community at large
>is a touchy one, so i want to start off by saying that i want to make this
>change for our php implementation for use on our site.
>
>so, with that said, i would like to modify the nl2br() function so that it
>is xhtml 1.0 compliant. can anyone tell me where in the code i can find
>this function?
>
>many thanks in advance.
>
>-lucas
>
>
>Lucas Rockwell
>[EMAIL PROTECTED]
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] where is the source is nl2br()?

2001-03-02 Thread Lars Torben Wilson

Lars Torben Wilson writes:
> Lucas Rockwell writes:
> > hi,
> > 
> > i know the subject of changing the source code for the community at large
> > is a touchy one, so i want to start off by saying that i want to make this
> > change for our php implementation for use on our site.
> > 
> > so, with that said, i would like to modify the nl2br() function so that it
> > is xhtml 1.0 compliant. can anyone tell me where in the code i can find
> > this function?
> > 
> > many thanks in advance.
> > 
> > -lucas
> > 
> > 
> > Lucas Rockwell
> > [EMAIL PROTECTED]
> 
> It's in ext/standard/string.c in the PHP 4 source, but it already is
> XHTML compliant:

Just following up to myself (sorry)--I just realized that this wasn't
in 4.0.4 since it was added on Dec 28 2000. Will be in 4.0.5 though.

>  ~/work/php4
>  shanna% php -q -a
>  Interactive mode enabled
> 
>echo nl2br("This is \n a test\n");
>  This is 
>   a test
>  ?>
> 
>  ~/work/php4
>  shanna% php -v
>  4.0.5-dev
> 
> 
> Cheers,
> 
> Torben
> 
> 
> -- 
> ++
> |Torben Wilson <[EMAIL PROTECTED]>Adcore Finland|
> |http://www.coastnet.com/~torbenhttp://www.adcore.com|
> |Ph: 1.604.709.0506 [EMAIL PROTECTED]|
> ++
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
++
|Torben Wilson <[EMAIL PROTECTED]>Adcore Finland|
|http://www.coastnet.com/~torbenhttp://www.adcore.com|
|Ph: 1.604.709.0506 [EMAIL PROTECTED]|
++

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] where is the source is nl2br()?

2001-03-02 Thread Lars Torben Wilson

Lucas Rockwell writes:
> hi,
> 
> i know the subject of changing the source code for the community at large
> is a touchy one, so i want to start off by saying that i want to make this
> change for our php implementation for use on our site.
> 
> so, with that said, i would like to modify the nl2br() function so that it
> is xhtml 1.0 compliant. can anyone tell me where in the code i can find
> this function?
> 
> many thanks in advance.
> 
> -lucas
> 
> 
> Lucas Rockwell
> [EMAIL PROTECTED]

It's in ext/standard/string.c in the PHP 4 source, but it already is
XHTML compliant:

 ~/work/php4
 shanna% php -q -a
 Interactive mode enabled

 
  a test
 ?>

 ~/work/php4
 shanna% php -v
 4.0.5-dev


Cheers,

Torben


-- 
++
|Torben Wilson <[EMAIL PROTECTED]>Adcore Finland|
|http://www.coastnet.com/~torbenhttp://www.adcore.com|
|Ph: 1.604.709.0506 [EMAIL PROTECTED]|
++

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]