chriscripps
Posts: 30
|
| Posted: 02/15/2011, 12:42 PM |
|
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\nedpms\registered.php on line 98
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\nedpms\registered.php on line 99
I turned on the error reporting on my server to try to see where some problems were coming from. That worked, but as I do that, I get lots of these messages on each page. Is this something I should worry about/try to fix? The lines referenced are all in the CodeCharge generated code, not what I have added.
Thanks,
Chris
|
 |
 |
datadoit
|
| Posted: 02/15/2011, 1:27 PM |
|
Chris, look at those lines (98, 99) and see what CCS function is being
used. Report back.
|
|
|
 |
chriscripps
Posts: 30
|
| Posted: 02/15/2011, 1:43 PM |
|
I have another project open right now, and these are the lines giving me the deprecated warnings. Like I said, they are all in the CodeCharge gray boxes.
Chris
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\test\NewPage1.php on line 78 (and repeats for 79, 80, 81,82, 478, and 479 - all lines below)
$this->Button_Insert = & new clsButton("Button_Insert", $Method, $this);
$this->Button_Update = & new clsButton("Button_Update", $Method, $this);
$this->Button_Delete = & new clsButton("Button_Delete", $Method, $this);
$this->update_field1 = & new clsControl(ccsTextBox, "update_field1", "Update Field1", ccsText, "", CCGetRequestParam("update_field1", $Method, NULL), $this);
$this->update_field2 = & new clsControl(ccsTextBox, "update_field2", "Update Field2", ccsText, "", CCGetRequestParam("update_field2", $Method, NULL), $this);
$Panel1 = & new clsPanel("Panel1", $MainPage);
$test_update = & new clsRecordtest_update("", $MainPage);
|
 |
 |
datadoit
|
| Posted: 02/15/2011, 2:10 PM |
|
There's something wrong with your form's control values, in that they're
defined wrong (defined as text but they're integers, defined as integers
but they're dates, etc.). Or, your datasource and WHERE parameters are
defined wrong in that they're not matching the type of data they're
looking for.
It's a data type mismatch.
|
|
|
 |
chriscripps
Posts: 30
|
| Posted: 02/15/2011, 3:43 PM |
|
Thanks data for the input.
I found the problem was in my Project Settings. I had PHP version as 4.x. Changing it to 5.x solved the issue. Apparently the 5.3 and up versions of PHP creates the warning.
Chris
|
 |
 |
datadoit
|
| Posted: 02/15/2011, 4:13 PM |
|
Excellent. May want to make certain your web host provider supports
5.x. There seem to be an enormous number of providers out there still
running 4.x.
|
|
|
 |
advcomputer
Posts: 68
|
| Posted: 02/22/2011, 4:22 PM |
|
I am starting to have similar issues. It seems that php 5.3 has numerous deprecated functions.
I just put in a help ticket and lets see what happens. For those inmterested in the changes with 5.3 you can go to;
http://php.net/manual/en/migration53.deprecated.php
-Jeff Goldstein
|
 |
 |
|