Re: phpwiki-1.5.2: Fatal PHP error.

Marc-Etienne Vargenau <[email protected]> Mon, 24 Nov 2014 17:07:39 +0100
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
On 22/11/2014 23:14, jdebert wrote:
> In re last,
>
> On Fri, 21 Nov 2014 17:25:25 -0800
> jdebert <[email protected]> wrote:
>
>> PHP Fatal error:  Call to undefined function posix_times()
>> in $PHPWIKI/lib/prepend.php on line 72, referer:
>> http://localhost/
>>
>
> [snip]
>>
>>      function DebugTimer()
>>      {
>>          $this->_start = $this->microtime();
>>          $this->_times = posix_times();
>>      }
>>
>
> I inserted a line from 1.4.0:
>
>        function DebugTimer() {
>            $this->_start = $this->microtime();
>            if (function_exists('posix_times'))  <----- from 1.4.0
>                $this->_times = posix_times();
>        }
>
> which seems to work so far and even took care of the deprecated
> function warnings. I had installed the php5 posix module before this
> thinking it may resolve the error but it did not.

Hi,

You are right, function posix_times does not always exist,
for example on Windows.

I had removed some function_exists checks for functions
that are supposed to be present in PHP >= 5.3 but for
this one it was not correct.

I have added the check again.

I will look to your SQL problem later.

Thank you for your remarks.

Best regards,

Marc-Etienne Vargenau

-- 
Marc-Etienne Vargenau [email protected]
Alcatel-Lucent France, Route de Villejust, 91620 NOZAY, FRANCE
+33 1 60 40 28 33 OnNet 2103 2833

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk