Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (21 sloc) 921 Bytes

Steps to build for debugging

configure your php build with the following two flags

--enable-maintainer-zts --enable-debug

the --enable-debug flag will make a debug version of php that spits out things like memory leak warnings the --enable-maintainer-zts flag

then run

./configure --enable-graphdat CFLAGS="-O0 -g3" LDFLAGS="-O0 -g3"
sudo make install

the CFLAGS and LDFLAGS set no optimizations and also compiles debugging symbols

once you have done that the graphdat module is installed to enable it you need to edit your php.ini file and add