You are here: Re: Call-time pass-by-reference has been deprecated; « PHP Programming Language « IT news, forums, messages
Re: Call-time pass-by-reference has been deprecated;

Posted by ZeldorBlat on 10/03/22 12:00

On Jan 16, 10:51 am, "sisqo...@gmail.com" <sisqo...@gmail.com> wrote:
> Hi all,
>
> I have this kind of warning and would like to have it solved:
> Warning: Call-time pass-by-reference has been deprecated; If you would
> like to pass it by reference, modify the declaration of
> xml_parse_into_struct(). 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. in /bla.php on line 94
>
> The code which is behind is like this:
> /* read the DSN from the file */
> if( !($parser = xml_parser_create( ) )){
> echo "Could not create parser<br>";
> exit;
> }
>
> /* read the xml file */
> $data = implode( file( $_SESSION[ 'CONF_file' ] ), "" );
>
> /* parse into array */
> xml_parse_into_struct( $parser, $data, &$structure, &$index );
> xml_parser_free( $parser );
>
> Somebody who can help me? And turning off/on
> allow_call_time_pass_reference is not an option.
>
> Greetz

Remove the & in front of $structure when you call
xml_parse_into_struct().

That function (according to the documentation, anyway) takes that
argument by reference -- so there's no need to specify the & when you
call the function.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация