<?php
class myClass
{
var $myVar;
..
..
}
?>
In php.ini I have error_reporting = E_ALL | E_STRICT
The above code is causing the following error/notification in my Apache
logs:-
"PHP Strict Standards: var: Deprecated. Please use the
public/private/protected modifiers."
Searching in the most current .chm help finds very little, indeed the
class definition examples still use var.
I understand the reason for the warning, what I don't have is a scope
definition for public, private and protected nor an explicit definition
of how to use the modifiers.
Any help on the above would be appreciated.
Steve.
--
PHP 5.0.4 Apache 2.0.54 Win2K/SP4
If you must reply by email, remove the DOT's first... 2 7583
"Screwball" <sc**********@blueyonderDOT.coDOT.uk> a écrit dans le message de
news: B2*****************@text.news.blueyonder.co.uk... <?php class myClass { var $myVar; . . } ?>
In php.ini I have error_reporting = E_ALL | E_STRICT The above code is causing the following error/notification in my Apache logs:-
"PHP Strict Standards: var: Deprecated. Please use the public/private/protected modifiers."
Searching in the most current .chm help finds very little, indeed the class definition examples still use var.
I understand the reason for the warning, what I don't have is a scope definition for public, private and protected nor an explicit definition of how to use the modifiers.
Any help on the above would be appreciated.
Steve.
-- PHP 5.0.4 Apache 2.0.54 Win2K/SP4 If you must reply by email, remove the DOT's first...
Hi, every things here : http://www.php.net/manual/en/languag...visibility.php
(¯`·..Yttrium ...·´¯) wrote: "Screwball" <sc**********@blueyonderDOT.coDOT.uk> a écrit dans le message de news: B2*****************@text.news.blueyonder.co.uk...
<?php class myClass { var $myVar; . . } ?>
In php.ini I have error_reporting = E_ALL | E_STRICT The above code is causing the following error/notification in my Apache logs:-
"PHP Strict Standards: var: Deprecated. Please use the public/private/protected modifiers."
Searching in the most current .chm help finds very little, indeed the class definition examples still use var.
I understand the reason for the warning, what I don't have is a scope definition for public, private and protected nor an explicit definition of how to use the modifiers.
Any help on the above would be appreciated.
Steve.
-- PHP 5.0.4 Apache 2.0.54 Win2K/SP4 If you must reply by email, remove the DOT's first... Hi, every things here : http://www.php.net/manual/en/languag...visibility.php
Brilliant - thank you.
Would be nice if public, private and protected were keywords in the
index though - I never thought of "visibility" :o
--
Steve.
If you must reply by email, remove the DOT's first... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris |
last post by:
Hi,
I don't get the difference between a struct and a class !
ok, I know that a struct is a value type, the other a reference type, I
understand the technical differences between both, but...
|
by: StillStuckOnJava |
last post by:
I'm using visual studio to create a web application, but I'm having trouble
using a few classes that I've defined:
public class tank
{
public tank()
{
}
public float depth;
public float...
|
by: Grigs |
last post by:
Hello,
I have a fairly simple class that I created and it works great. Basically
it remembers a certain amount of strings. When a new one comes in the oldest
drops off. The problem is, when I...
|
by: Daniel Sélen Secches |
last post by:
I found a good class to do a simple FTP.
Very good....
I'm posting it with the message, i hope it helps someone
==============================================================
Imports...
|
by: hamil |
last post by:
I have a form with one button, Button1, and a Textbox, Textbox1
I have a class, class1 as follows.
Public Class Class1
Public DeForm As Object
Sub doit()
DeForm.Textbox1.text = "It works"...
| |
by: Per Bull Holmen |
last post by:
Hey
Im new to c++, so bear with me. I'm used to other OO languages, where it
is possible to have class-level initialization functions, that
initialize the CLASS rather than an instance of it....
|
by: tshad |
last post by:
Using VS 2003, I am trying to take a class that I created to create new
variable types to handle nulls and track changes to standard variable types.
This is for use with database variables. This...
|
by: oh.i.love.spam |
last post by:
I've been a procedural PHPer for a while now and I don't know why it
has taken me so long to start the jump from procedural to OOP. I have
a function that I would use for doing length...
|
by: Mayur H Chauhan |
last post by:
All,
For my knowledge, if I declare Class as follow, then it thows
compilation error.
Protected Class Book
End Class
Even same for...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |