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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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