Bug #61458 [NEW]: unixtojd() undefined
From:
Operating system: SunOS 5.10
PHP version: 5.3.10
Package: Date/time related
Bug Type: Bug
Bug description:unixtojd() undefined
Description:
------------
Since upgrading from PHP 5.2.9 to 5.3.10, PHP is throwing the error:
... PHP Fatal error: Call to undefined function unixtojd() in
.../unixtojd.php on
line 5
Checking phpinfo(), I can see that the calendar lib is enabled:
'--enable-calendar=shared'
Searching on Google for posts since the first release of PHP 5.3 (June 30,
2009)
did not reveal much more: http://goo.gl/2YbWj
If anyone has an answer, please notify me
Thank you!
Test script:
---------------
<pre>
<?
$time = time();
echo ( ($time)); echo "\n";
echo unixtojd($time); echo "\n";
//die ("got here");
function showdiff($s1, $s2) {
echo ("showdiff($s1, $s2)\n");
$t1 = strtotime($s1);
$t2 = strtotime($s2);
//echo unixtojd($t2); echo "\n";
echo (unixtojd($t2) - unixtojd($t1)); echo "\n";
}
showdiff("1.1.2012 00:00:00 GMT", "15.1.2012 00:00:00 GMT");
showdiff("1.3.2012 00:00:00 GMT", "15.3.2012 00:00:00 GMT");
?>
</pre>
Expected result:
----------------
1332277193
2456007
showdiff(1.1.2012 00:00:00 GMT, 15.1.2012 00:00:00 GMT)
14
showdiff(1.3.2012 00:00:00 GMT, 15.3.2012 00:00:00 GMT)
14
Actual result:
--------------
... PHP Fatal error: Call to undefined function unixtojd() in
.../unixtojd.php on
line 5
--
Edit bug report at https://bugs.php.net/bug.php?id=61458&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=61458&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=61458&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=61458&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=61458&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=61458&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=61458&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=61458&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=61458&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=61458&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=61458&r=support
Expected behavior: https://bugs.php.net/fix.php?id=61458&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=61458&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=61458&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=61458&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=61458&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61458&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=61458&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=61458&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=61458&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=61458&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=61458&r=mysqlcfg
Thread (3 messages)
- lsiden at gmail dot com