Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
PHPtoolkit segmentation fault / bus error on nsClient::makeCall()
I'm running into a fatal error using PHPToolkit for performing a saved search.
I've created a test PHP script based on some of the samples:
[PHP]
require_once '../PHPtoolkit.php';
require_once 'login_info.php';
global $myNSclient;
$search = new nsComplexObject("ItemSearchAdvanced");
$fields = array (
'savedSearchId' => '258',
);
$search->setFields($fields);
$searchResponse = $myNSclient->search($search);
[/PHP]
Running this under PHP 5.2.11 on Mac OS X 10.5.8 results in a "bus error".
Running it under PHP 5.2.11 on Red Hat Enterprise Linux 5 results in a "Segmentation fault".
I've traced it down to line 1536 in PHPtoolkit.php. This is where PHP is bailing out:
I've created a test PHP script based on some of the samples:
[PHP]
require_once '../PHPtoolkit.php';
require_once 'login_info.php';
global $myNSclient;
$search = new nsComplexObject("ItemSearchAdvanced");
$fields = array (
'savedSearchId' => '258',
);
$search->setFields($fields);
$searchResponse = $myNSclient->search($search);
[/PHP]
Running this under PHP 5.2.11 on Mac OS X 10.5.8 results in a "bus error".
Running it under PHP 5.2.11 on Red Hat Enterprise Linux 5 results in a "Segmentation fault".
I've traced it down to line 1536 in PHPtoolkit.php. This is where PHP is bailing out:
0