From: lars dot a dot johansson at se dot atlascopco dot com Operating system: linux PHP version: 5.3CVS-2008-02-29 (snap) PHP Bug Type: Reproducible crash Bug description: Segmentation fault in SAPRFC function NewFunction
Description: ------------ Hi, 2.6.17-5mdventerprise #1 SMP Wed Sep 13 14:50:48 EDT 2006 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz GNU/Linux Running the below in 5.2 works OK. My snap is php5.3-200802231330. I try to run a BAPI in a SAP system using SAPRFC http://saprfc.sourceforge.net/ I put in the print "NEWFUNCTION" stmts to see how far I get. function NewFunction ($name) { print "NEWFUNCTION0\n"; $ix = count ($this->fceList); $this->fceList[$ix] = new SAPFunction(); print "NEWFUNCTION1\n"; $rc = $this->fceList[$ix]->Discover ($this->rfc,strtoupper($name)); print "NEWFUNCTION3\n"; if ($rc != SAPRFC_OK) { $this->fceList[$ix]->Close(); unset ($this->fceList[$ix]); return (false); } print "NEWFUNCTION9\n"; return ($this->fceList[$ix]); } Reproduce code: --------------- Its not trivial to supply code to reproduce this bug. If anyone is willing to dig into this please tell me how I should trace my problem, and I hand over the result. Expected result: ---------------- print "NEWFUNCTION0\n"; print "NEWFUNCTION1\n"; print "NEWFUNCTION3\n"; print "NEWFUNCTION9\n"; Actual result: -------------- NEWFUNCTION0 NEWFUNCTION1 Segmentation fault -- Edit bug report at http://bugs.php.net/?id=44292&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44292&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44292&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44292&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44292&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44292&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44292&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44292&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44292&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44292&r=support Expected behavior: http://bugs.php.net/fix.php?id=44292&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44292&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44292&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44292&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44292&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44292&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44292&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44292&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44292&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44292&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44292&r=mysqlcfg