|
PHP Windows x64 |
Posted by Maxx on Sep-11-2015 21:06 |
|
Hi Peter,
It seems the PHP version for Windows x64 still contains the v5 of the library (from 2013)...
Is this a mistake or maybe a reason for it..? |
Re: PHP Windows x64 |
Posted by Peter Kwan on Sep-12-2015 01:55 |
|
Hi Maxx,
I have just tried myself. The one I downloaded from our web site is dated 2015. Note that
the ChartDirector DLL is "chartdir.dll", and the PHP API is "phpchartdir.php". These two files
should be dated Jun 2015 and May 2015. The other DLLs "phpchartdir???.php" are just
"adapters" to bridge the PHP with the C++ that ChartDirector is based on. We need one
adapter for each PHP version (so there are a version for PHP 5.5, one for PHP 5.6, etc), but
we do not need to change them when the ChartDirector version change. So these DLLs can
still be using an old date (the date that they first appear). The ChartDirector for PHP on
Windows 64-bit is first released in 2013, so the oldest phpchartdir???.dll should be dated
2013.
Regards
Peter Kwan |
Re: PHP Windows x64 |
Posted by Maxx on Sep-12-2015 11:32 |
|
Thanks Peter,
That makes sense..
However it seems that phpinfo still reports it as being version 5.0.
I ran the demos and it doesn't seem to matter so all good.
The only reason I noticed it is because I was testing PHP7...
I hope you have the update ready to roll when it is comes out of RC
Maxx |
Re: PHP Windows x64 |
Posted by Peter Kwan on Sep-14-2015 23:46 |
|
Hi Maxx,
The version reported by the phpinfo is that of the "adapter" (phpchartdir???.dll), which does
not need to update.
We are still investigating how to make it report the version of the "chartdir.dll" or
"libchartdir.so". From our understanding, the PHP system obtains the version from a table
inside the "phpchartdir???.dll" (which must be present for all PHP extensions), and it reads
the table before activating the "phpchartdir???.dll". So "phpchartdir???.dll" has no chance to
dynamically set its version number to that of the "chartdir.dll" and "libchartdir.so" before PHP
reads the version number, and PHP reads the version number at the time the
phpchartdir???.dll was first released.
We have a script "phpdemo/cdinfo.php" that comes with ChartDirector that can correctly
report the ChartDirector version.
Regards
Peter Kwan |
|