linux-gpib php support

31 views
Skip to first unread message

Richard Klingler

unread,
Aug 6, 2014, 3:23:45 PM8/6/14
to gpib...@googlegroups.com
As I thought PHP would also make some nice application examples I just figured out that on latest linux-gpib the PHP support is rather outdated...

Although the folder inside the sources is call PHP5, current PHP5 version won't support it....as the "pass by reference" is obsolete now...


Digging now into the php module code...and as there is so little documentation for php5 module writing...it's now a matter of try&error...


Well..so far I can write to the module and print some statements inside the module that it is returning something...
Just have to figure out all the strange ZVAL and memory allocation/cleanup stuff (o;


I'm almost there:

klingler@nuc:~/linux-gpib-3.2.20/language/php$ php TESTS/dso.php
Device number = 16
String written: *IDN?
Error Code 0
Bytes read: 32
Returned string: HEWLETT-PACKARD,6632B,0,A.01.04

*** Error in `php': free(): invalid next size (fast): 0x0000000001c13ba0 ***



Reply all
Reply to author
Forward
0 new messages