Thread: Call-time pass-by-reference deprecation errors
Brought to you by:
bs_php,
nigelswinson
From: <li...@jm...> - 2001-12-06 05:23:48
|
hi, i use xpath all the time, but i'm a little new to php. i'm using the latest version of php.xpath [2.1 (beta)], and whether i include() it or require() it, i get copious [well, ten] errors of the following sort: > Warning: Call-time pass-by-reference has been deprecated - argument > passed by value; If you would like to pass it by reference, modify the > declaration of [runtime function name](). If you would like to enable > call-time pass-by-reference, you can set allow_call_time_pass_reference > to true in your INI file. However, future versions may not support this > any longer. in /root/path/XPath_V2/XPath.class.php on line 163 there was no INSTALL or README in the top level of the src directory; am i missing a step, or does this look like php version-mismatch? thanks in advance, -- jm3 / john manoogian III / bad...@jm... / www.jm3.net |
From: Peter R. <php...@pe...> - 2001-12-07 11:35:27
|
not seen this error, but line 163 is in a deprecated function. Do you get the same msg using the preferred appendData, which uses different parameters? On Thursday 06 Dec 2001 5:25 am, you wrote: > hi, i use xpath all the time, but i'm a little new to php. > i'm using the latest version of php.xpath [2.1 (beta)], > and whether i include() it or require() it, i get copious [well, ten] > > errors of the following sort: > > Warning: Call-time pass-by-reference has been deprecated - argument > > passed by value; If you would like to pass it by reference, modify the > > declaration of [runtime function name](). If you would like to enable > > call-time pass-by-reference, you can set allow_call_time_pass_reference > > to true in your INI file. However, future versions may not support this > > any longer. in /root/path/XPath_V2/XPath.class.php on line 163 > > there was no INSTALL or README in the top level of the src directory; > am i missing a step, or does this look like php version-mismatch? > > thanks in advance, > > -- jm3 / john manoogian III / bad...@jm... / www.jm3.net > > _______________________________________________ > Phpxpath-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpxpath-users |
From: john m. I. <li...@jm...> - 2001-12-07 16:21:32
|
on Friday Dec 07 at 11.31 AM, Peter Robins wrote: > not seen this error, but line 163 is in a deprecated function. Do you get the > same msg using the preferred appendData, which uses different parameters? that's kinda the same question that sam blum asked me. the funny part is, i'm not /using/ any of the functions yet, all i did was a one-line test page that just require()'s the class.php file. i added the "php_flag allow_call_time_pass_reference on" directive to my .htacess file, which made the php compiler shut up about the deprecation warnings. possibly something should get added to the readme about, it's a bit disconcerting to see all those errors at first. also, a short example php file showing basic php.xpath usage would be extremely helpful. the class documentation is nice, but not so helpful to a beginning user who doesn't necessarily know in advance what methods might be useful. i downloaded the pxpxmldb source to have something else to look at, but just a simple "here's a new xpath object, here's how we select a node and print it out, done." would go a long way. i'll try and write one and post it, maybe that could also be bundled with the download as a resource for new users. regards, -- jm3 / john manoogian III / bad...@jm... / www.jm3.net |
From: Nigel S. <nig...@us...> - 2001-12-07 16:27:47
|
> <snip> possibly something should get added to > the readme about, it's a bit disconcerting to see all those errors at > first. > > also, a short example php file showing basic php.xpath usage would be > extremely helpful. <snip> All in due time folks :o) I'd like to see this stuff too, but we are trying to spend the time on 2.2 which will hopefully bring us out of "beta", then we can enhance speed and produce more FAQ and examples stuff. Nigel |
From: Peter R. <php...@pe...> - 2001-12-07 17:05:36
Attachments:
testxml.php
ding.xml
|
On Friday 07 Dec 2001 4:22 pm, you wrote: > > also, a short example php file showing basic php.xpath usage would be > extremely helpful. the class documentation is nice, but not so helpful > to a beginning user who doesn't necessarily know in advance what > methods might be useful. i downloaded the pxpxmldb source to have > something else to look at, but just a simple "here's a new xpath > object, here's how we select a node and print it out, done." would go a > long way. i'll try and write one and post it, maybe that could also be > bundled with the download as a resource for new users. I had much the same thoughts myself. Here's a simple sample I wrote, first evaluating the first occurrence, then doing the same thing using a specific attribute. You can remove the comment on the print_r to see what evaluate/match creates (easier to read as plain text rather than html). |
From: john m. I. <jm...@jm...> - 2001-12-08 03:55:22
|
on Friday Dec 07 at 05.04 PM, Peter Robins wrote: > On Friday 07 Dec 2001 4:22 pm, you wrote: > > I had much the same thoughts myself. Here's a simple sample I wrote, <snip /> thank you kindly! saved my life, aka. lots of time fiddling around to figure stuff out. much obliged. in answer to my own question, i made a concise five-step php.xpath "getting started" guide with a small working demo and src, visible at: http://jm3.net/misc/php-xpath-quickstart/ with any luck this document could help other newbies just beginning to wet their feet with php.xpath. -- jm3 / john manoogian III / bad...@jm... / www.jm3.net |
From: Nigel S. <nig...@us...> - 2001-12-11 21:13:43
|
> on Saturday Dec 08 at 03.45 PM, Nigel Swinson wrote: > > Neat! I like it :o) > > > > > on Friday Dec 07 at 05.04 PM, Peter Robins wrote: > > > > On Friday 07 Dec 2001 4:22 pm, jm3 wrote: > > > > > > http://jm3.net/misc/php-xpath-quickstart/ > > > > > > with any luck this document could help other newbies just beginning to > > > wet their feet with php.xpath. > > great, thanks! i submitted it to the doc manager page on sourceforge. Cool, ta. Have approved and a link to jm's quickstart is now available from the phpxpath homepage :o) =========================== For the most recent version of Php.XPath, and an archive of this list visit: http://www.sourceforge.net/projects/phpxpath |