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 3 23760 si******@gmail.com wrote:
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().
In other words, instead of this:
xml_parse_into_struct( $parser, $data, &$structure, &$index );
Use this:
xml_parse_into_struct( $parser, $data, $structure, $index );
And modify the function definition of xml_parse_into_struct to include the
ampersand symbols there instead.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 17 days, 4:36.]
Gnocchi all'Amatriciana al Forno http://tobyinkster.co.uk/blog/2008/0...llamatriciana/
On 16 jan, 18:24, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
sisqo...@gmail.com wrote:
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().
In other words, instead of this:
xml_parse_into_struct( $parser, $data, &$structure, &$index );
Use this:
xml_parse_into_struct( $parser, $data, $structure, $index );
And modify the function definition of xml_parse_into_struct to include the
ampersand symbols there instead.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 17 days, 4:36.]
Gnocchi all'Amatriciana al Forno http://tobyinkster.co.uk/blog/2008/0...llamatriciana/
Tried this and warnings are gone but now I get this Notice:
Notice: Only variable references should be returned by reference in
blaja.php on line 165
The last line of the code is line 165
if ($uID == 0) {
$uID = $this->f_getUserID();
}
if ($uID <= 0) { return 0; }
Maybe someone can get me out of this? si******@gmail.com wrote:
On 16 jan, 18:24, Toby A Inkster <usenet200...@tobyinkster.co.uk>
wrote:
>sisqo...@gmail.com wrote:
>>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().
In other words, instead of this:
xml_parse_into_struct( $parser, $data, &$structure, &$index );
Use this:
xml_parse_into_struct( $parser, $data, $structure, $index );
And modify the function definition of xml_parse_into_struct to include the ampersand symbols there instead.
-- Toby A Inkster BSc (Hons) ARCS [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux] [OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 17 days, 4:36.]
Gnocchi all'Amatriciana al Forno http://tobyinkster.co.uk/blog/2008/0...llamatriciana/
Tried this and warnings are gone but now I get this Notice:
Notice: Only variable references should be returned by reference in
blaja.php on line 165
The last line of the code is line 165
if ($uID == 0) {
$uID = $this->f_getUserID();
}
if ($uID <= 0) { return 0; }
Maybe someone can get me out of this?
Exactly what it says. You indicated your function returns a reference.
This implies a variable to refer to. 0 is not a variable.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
================== This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Marwan |
last post by:
Hello
I am using asynchronous delegates to make a call to a COM ActiveX object, but even though the call occurs on a separate thread, my UI is still blocking.
If i put the thread to sleep in my...
|
by: Fabian Müller |
last post by:
Hi all,
my question is as follows:
If have a class X and a class Y derived from X.
Constructor of X is X(param1, param2) .
Constructor of Y is Y(param1, ..., param4) .
|
by: trying_to_learn |
last post by:
Why do we need to explicitly call the copy constructor and the operator
= , for base class and member objects in composition?
....book says "You must explicitly call the GameBoard copy-constructor...
|
by: JoeK |
last post by:
Hey all,
I am automating a web page from Visual Foxpro. I can control all the
textboxes, radio buttons, and command buttons using syntax such as:
...
|
by: rahul8143 |
last post by:
hello,
what is difference between system call and library function
call? Does library function call can have context switch to kernel
mode?
regards,
rahul
|
by: Amaryllis |
last post by:
I'm trying to call a CL which is located on our AS400 from a Windows
application. I've tried to code it in different ways, but I seem to
get the same error every time. Does anyone have any clue...
|
by: news.onet.pl |
last post by:
Hello!
I have a small question concerning to the procedure call.
I have the following procedure:
private sub procedure_name (ByVal name1 as string)
....
end sub
When I call it I just...
|
by: harborboy76 |
last post by:
I am calling the exact same stored procedure called myprocedure from 2
different boxes from the CLP, but I'm experiencing different behaviors
between them. After I was unable to get
any support...
|
by: Steven T. Hatton |
last post by:
I just read §2.11.3 of D&E, and I have to say, I'm quite puzzled by what it
says.
http://java.sun.com/docs/books/tutorial/essential/concurrency/syncrgb.html
<shrug>
--
NOUN:1. Money or...
|
by: cberthu |
last post by:
Hi all,
Is it possible to have two connects in the same rexx script to
different DB's?
I have to get data form on DB (with specifics selects and filter out
some values with RExx) and save the...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |