As far as I understand, the attached code, which uses
gv::renderresult (graph_handle, string format, string outdata);
should render to the outdata string. Since I have not echo'd the string, the attached example should not output anything. However, this code appears to render flawlessly for the following versions of graphviz:
2.26.3-5ubuntu4 (current detfault libgv-php5 package on Ubuntu 11.10 64bit)
2.28.0 (latest stable, custom built from source)
2.29.201206013.0446 (latest development, custom built from source)
which suggests that the renderresult function is not behaving as it is supposed to. It is behaving more like the gv::render function should behave. This example fails to work at all for v2.20.2 - even if the output string is echoed manually.
In summary it looks like the php bindings have been broken since at least v2.20.2 and it would be good if this could be fixed because graphviz without the ability to render is pretty useless. Thanks.
As far as I understand, the attached code, which uses
gv::renderresult (graph_handle, string format, string outdata);
should render to the outdata string. Since I have not echo'd the string, the attached example should not output anything. However, this code appears to render flawlessly for the following versions of graphviz:
2.26.3-5ubuntu4 (current detfault libgv-php5 package on Ubuntu 11.10 64bit)
2.28.0 (latest stable, custom built from source)
2.29.201206013.0446 (latest development, custom built from source)
which suggests that the renderresult function is not behaving as it is supposed to. It is behaving more like the gv::render function should behave. This example fails to work at all for v2.20.2 - even if the output string is echoed manually.
In summary it looks like the php bindings have been broken since at least v2.20.2 and it would be good if this could be fixed because graphviz without the ability to render is pretty useless. Thanks.