#27659 [Com]: Cannot re-assign $this

2004-09-22 Thread thejam at gmail dot com
 ID:   27659
 Comment by:   thejam at gmail dot com
 Reported By:  js at enradia dot com
 Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: linux 2.6.3
 PHP Version:  5.0.0RC1
 New Comment:

How Silly.  We used $this for just about every result set in a db
query.  We have like a hundred applications.  I just ran a sript on our
whole htdocs directory and changed them all to $result.  Works fine.


Previous Comments:


[2004-08-23 20:10:48] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

As helly posted originally, this is expected behavior.  
One of the changes between php4 and php5 is that objects 
types are no longer mutable.  You can not change $this 
in php 5, by design.



[2004-08-23 20:01:50] shelever at ukrlink dot net

osCommerce 2.2-MS2 gets same error when open admin folder. Error in
file includes/classes/upload.php. 
On Windows/IIS5/ISAPI.

Resolwed by commenting:
// self destruct
//  $this = null;

Worked at PHP4

Good Luck!



[2004-07-22 15:28:08] mschulznospam at qualserv dot net

Expected behavior is if a script that works in PHP 4 also works in PHP
5.  This is definitely a bug, whether it's a bug in PHP or a bug in the
script.  But this broke a whole bunch of scripts on our servers so I'm
blaming PHP.

(remove the nospam in my email address if u want to reply)



[2004-07-21 18:00:33] drew at estara dot com

Anyone who knows PHP objects better than me, as a simple replacement
for:

$this = $foo;

will something like this:

foreach (get_object_vars($foo) as $key => $value)
  $this->$key = $value;

work in all cases?  It's worked in all the cases I've tested it on so
far (including Gallery), but I figure there must be a problem with it
since no one's mentioned it so far.

Drew



[2004-07-15 23:26:06] mlemos at acm dot org

There is no assignment of $this in Metabase code. It was a
misunderstanding of the original poster. Metabase works seeminglessly
in PHP 3, PHP 4 and PHP 5.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/27659

-- 
Edit this bug report at http://bugs.php.net/?id=27659&edit=1


#40584 [NEW]: new Soapclient produces Segfault/Core dump

2007-02-21 Thread thejam at gmail dot com
From: thejam at gmail dot com
Operating system: SLES 10 (s390x) 64bit
PHP version:  5.2.1
PHP Bug Type: SOAP related
Bug description:  new Soapclient produces Segfault/Core dump

Description:

First bug report, I've scoured the reports for similar issues, nothing is
helping though.  Hopefully I didn't miss something.

Platform is zLinux VM on the mainframe.  SLES 10.

PHP installed from source, not through yast:

'./configure' '--enable-soap' '--without-pear'
'--with-apxs2=/usr/local/apache2/bin/apxs'

---
Declaring a new SoapClient throws a segfault when the script is processed.
 In a browser, it immediately asks if you want to save the script.  Log
files shows a Segmentation Fault.







Reproduce code:
---
http://myserver/services/sccsystem?wsdl');

?>

Expected result:

Hello World!

**I don't expect output from the SoapClient object, I whittled it down to
just this line, and found it still segfaulted.**

Actual result:
--
Nothing.

Log file says:

[Wed Feb 21 13:21:32 2007] [notice] child pid 21118 exit signal
Segmentation fault (11)

-- 
Edit bug report at http://bugs.php.net/?id=40584&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40584&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40584&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40584&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40584&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=40584&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=40584&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=40584&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=40584&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=40584&r=support
Expected behavior:http://bugs.php.net/fix.php?id=40584&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=40584&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=40584&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40584&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40584&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40584&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=40584&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=40584&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40584&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=40584&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=40584&r=mysqlcfg


#40584 [Fbk->Csd]: new Soapclient produces Segfault/Core dump

2007-02-21 Thread thejam at gmail dot com
 ID:   40584
 User updated by:  thejam at gmail dot com
 Reported By:  thejam at gmail dot com
-Status:   Feedback
+Status:   Closed
 Bug Type: SOAP related
 Operating System: SLES 10 (s390x) 64bit
 PHP Version:  5.2.1
 New Comment:

Recompiled with --enable-debug, and no more segfault.  I've recompiled
twice before, but I still think it was probably botched.  Thanks.


Previous Comments:


[2007-02-21 20:02:29] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.





[2007-02-21 19:53:48] thejam at gmail dot com

Description:

First bug report, I've scoured the reports for similar issues, nothing
is helping though.  Hopefully I didn't miss something.

Platform is zLinux VM on the mainframe.  SLES 10.

PHP installed from source, not through yast:

'./configure' '--enable-soap' '--without-pear'
'--with-apxs2=/usr/local/apache2/bin/apxs'

---
Declaring a new SoapClient throws a segfault when the script is
processed.  In a browser, it immediately asks if you want to save the
script.  Log files shows a Segmentation Fault.







Reproduce code:
---
http://myserver/services/sccsystem?wsdl');

?>

Expected result:

Hello World!

**I don't expect output from the SoapClient object, I whittled it down
to just this line, and found it still segfaulted.**

Actual result:
--
Nothing.

Log file says:

[Wed Feb 21 13:21:32 2007] [notice] child pid 21118 exit signal
Segmentation fault (11)





-- 
Edit this bug report at http://bugs.php.net/?id=40584&edit=1