Re: [PHP-DOC] cvs: phpdoc /en/reference/mcve/functions mcve-completeauthorizations.xml From: Brad House (brad-list <email protected>)
Date: 10/24/02

Yeah, that str_replace is fine, add it... I wrote that
thing is such a short amount of time, I guess I didn't
attempt to forsee stuff like &.

Anyhow, I'm not really sure of PHP data types, I'm
more of a C person, but what it creates is an array
of integers. You pass the array by reference, and
the return value of the actual function is the number
of elements that get filled into the array. It really
doesn't need to happen that way, and that function will
probably change (it was necessary to be this way in C, but
in PHP, it's overkill, all PHP itself maintains a count
of elements in a PHP array)

-Brad

Philip Olson wrote:
> This would stop this from happening in the future, any
> possible problems?
>
> - $argname = $funclist[$i]["args"][$j]["variable"];
> + $argname = str_replace('&', '&amp;', $funclist[$i]["args"][$j]["variable"]);
>
> Our only concern here is '&' right? This is in reference
> (pun intended) to phpdoc/scripts/xml_proto.php
>
> On a related note, is this particular proto correct? A type
> int array reference?!
>
> Regards,
> Philip
>
>
> On Thu, 24 Oct 2002, Philip Olson wrote:
>
>
>>philip Thu Oct 24 15:42:02 2002 EDT
>>
>> Modified files:
>> /phpdoc/en/reference/mcve/functions mcve-completeauthorizations.xml
>> Log:
>> & -> &amp;
>>
>>
>>Index: phpdoc/en/reference/mcve/functions/mcve-completeauthorizations.xml
>>diff -u phpdoc/en/reference/mcve/functions/mcve-completeauthorizations.xml:1.3 phpdoc/en/reference/mcve/functions/mcve-completeauthorizations.xml:1.4
>>--- phpdoc/en/reference/mcve/functions/mcve-completeauthorizations.xml:1.3 Sun Oct 20 23:28:14 2002
>>+++ phpdoc/en/reference/mcve/functions/mcve-completeauthorizations.xml Thu Oct 24 15:42:01 2002
>>@@ -1,5 +1,5 @@
>> <?xml version='1.0' encoding='iso-8859-1'?>
>>-<!-- $Revision: 1.3 $ -->
>>+<!-- $Revision: 1.4 $ -->
>> <refentry id="function.mcve-completeauthorizations">
>> <refnamediv>
>> <refname>mcve_completeauthorizations</refname>
>>@@ -10,7 +10,7 @@
>> <methodsynopsis>
>> <type>int</type><methodname>mcve_completeauthorizations</methodname>
>> <methodparam><type>resource</type><parameter>conn</parameter></methodparam>
>>- <methodparam><type>int</type><parameter>&array</parameter></methodparam>
>>+ <methodparam><type>int</type><parameter>&amp;array</parameter></methodparam>
>> </methodsynopsis>
>> <para>
>> &warn.undocumented.func;
>>
>>
>>
>>--
>>PHP Documentation Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>
>

-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php