1--TEST-- 2jdtojewish() function 3--SKIPIF-- 4<?php include 'skipif.inc'; ?> 5--FILE-- 6<?php 7 8var_dump(jdtojewish(gregoriantojd(10,28,2002))."\r\n". 9 jdtojewish(gregoriantojd(10,28,2002),true)."\r\n". 10 jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n". 11 jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM)."\r\n". 12 jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_ALAFIM_GERESH+CAL_JEWISH_ADD_ALAFIM)."\r\n". 13 jdtojewish(gregoriantojd(10,28,2002),true, CAL_JEWISH_ADD_GERESHAYIM)."\r\n". 14 jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM)."\r\n". 15 jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n". 16 jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM)."\r\n". 17 jdtojewish(gregoriantojd(10,8,2002),true, CAL_JEWISH_ADD_GERESHAYIM+CAL_JEWISH_ADD_ALAFIM+CAL_JEWISH_ADD_ALAFIM_GERESH)."\r\n". 18 jdtojewish(gregoriantojd(3,10,2007))."\r\n"); 19 20echo jdtojewish(gregoriantojd(11,5,2002)) . "\n"; 21echo jdtojewish(gregoriantojd(11,29,2004)) . "\n"; 22echo jdtojewish(gregoriantojd(1,1,9998)) . "\n"; 23echo jdtojewish(gregoriantojd(1,1,9998),true) . "\n"; 24?> 25--EXPECTF-- 26string(%d) "2/22/5763 27�� ���� ����� 28�� ���� �'���� 29�� ���� � ����� ���� 30�� ���� �' ����� ���� 31�"� ���� ����"� 32�' ���� ����"� 33�' ���� �'���"� 34�' ���� � ����� ���"� 35�' ���� �' ����� ���"� 367/20/5767 37" 382/30/5763 393/16/5765 403/8/13758 41 42Warning: jdtojewish(): Year out of range (0-9999) in %s on line %d 43