QIQã¨ã¯ã¹ãã³ã·ã§ã³ããã£ã¦ãããã¨ã«ã¤ãã¦ã
PHPã¨ãããZend Engineã§ã¯ãã³ã³ãã¤ã©ã¨ã¨ã¯ã¼ãã¥ã¼ã¿ãé¢æ°ãã¤ã³ã¿ã«ãªã£ã¦ããããããããã¡ã¤ã«ã®å
容ããå®è¡ã³ã¼ããçæããzend_comiple_fileãæååããå®è¡ã³ã¼ããçæããzend_compile_stringãå®è¡ã³ã¼ãã«å¯¾å¿ãããã³ãã©ãå¼ã³åºãzend_executeãå®ç¾©ããã¦ãã¾ããã¾ãããããã®ããã©ã«ãå®è£
ã¨ãã¦compile_file()ãcompile_string()ãexecute()ãããã¾ãã
è¨èªã¨ãã¦ã¯è¯ããæªããã¯å¥ã«ãã¦ãå
ããæãããããªãç¬èªã®ãã¸ã·ã§ã³ã«ããPHPã§ãããã³ã¢ã®Zend Engineã¯ã³ã³ãã¤ã©ãã¨ã°ã¼ãã¥ã¼ã¿ãå·®ãæããããããå®è¡æã®ããã¯ã追å ã§ãããã¨ãå®ã¯æ¡å¼µæ§ã«å¯ãã§ããã®ã§ããã§ããã«ãã¹ã¬ããã¨æ¼ç®åãªã¼ãã¼ãã¼ãã£ã³ã°ã ãã¯åå¼ãª!
QIQã§ã¯ãªãªã¸ãã«ã®yaccãã¡ã¤ã« (zend_language_parser.y) ã«å°ãã ãæãå ãããã®ããç¬èªã®æ§æ解æå¨qiqparseãçæããzend_comiple_fileã¨zend_comiple_stringãçµã¿è¾¼ã¿ã®æ§æ解æå¨zendparseã®ä»£ããã«qiqparseã使ãé¢æ°qiq_compile_fileã¨qiq_compile_stringã§ç½®ãæãã¦ãã¾ããqiq_compile_fileã¨qiq_compile_stringã®ä¸èº«ã¯ãzendparseãqiqparseã«ãªã£ã¦ããç¹ãé¤ãã¦ã¯ããªãªã¸ãã«ã®compile_fileããã³compile_stringã¨åãã§ããã¾ããåå¥è§£æå¨ã¯ãã®ã¾ã¾zendlexã使ã£ã¦ãã¾ããå®è¡ã«é¢ãã¦zend_executeã¯ãã®ã¾ã¾ã«ãã¦ãã¾ãããç¡åé¢æ°ã¨ã¯ãã¼ã¸ã£ããµãã¼ãããããã®ã¦ã¼ã¶å®ç¾©å®è¡ã³ã¼ããã³ãã©ãç»é²ãã¦ãã¾ã (ä¸å³ã§ã¯çç¥)ã
å®è¡ã¨ã³ã³ãã¤ã«: PHPã¨PHP+QIQ posted by (C)rsk
ä¸æ¹ãAPCãeAcceleratorçã®ãã£ãã·ã¥ãXdebugã®ãããªãããã¬ã§ã¯ããã£ããzend_compile_file (ãã®ã«ãã£ã¦ã¯zend_compile_stringãzend_executeã) ãæãé¢æ°ãå¥ã®é¢æ°ãã¤ã³ã¿ã«éé¿ãããå¾ãzend_compile_fileãç¬èªã®é¢æ°ã§ä¸æ¸ããã¦ãã¾ãããã®é¢æ°ã§ã¯ä¸è¬çã«ãåå¦çãâãå
ã®é¢æ°ãå®è¡ãâãå¾å¦çãã¨ããå¦çããã¦ãããçè«ä¸ã¯è¤æ°çµã¿åããããã¨ãå¯è½ã§ããç¸æ§ã®åé¡ã¯å¤åã«ããã¨æããã¾ããã
å®è¡ã¨ã³ã³ãã¤ã«: PHP+APC posted by (C)rsk
ããããQIQã®ã³ã³ãã¤ã©ã¯å
ã®ã³ã³ãã¤ã©ãå¼ã°ãªãã®ã§ãAPCçããå
ã«ãã¼ããããªããã°ãªãã¾ãããããå¾ãããã¼ããããå ´åã¯ãã£ãã·ã¥ãç¡å¹ã«ãªãã°ããã§ãªããäºæããªãåé¡ãèµ·ããå¯è½æ§ãããã¾ãã
ãã®ç¹ã«ãã注æããã°ãQIQã®ã³ã³ãã¤ã©ãçæããå®è¡ã³ã¼ãã¯ã¯ãã¼ã¸ã£ããã«æªä½¿ç¨ã®ã¤ãã³ãã転ç¨ãã¦ãã以å¤ã¯ãªãªã¸ãã«ã®ãã®ã¨å
¨ãåãã§ãã¯ãã¼ã¸ã£ãçæããã¤ãã³ããã¦ã¼ã¶å®ç¾©ãã³ãã©ã§å¦çããã®ã§ããã£ãã·ã¥ã¨ã®äºææ§ã確ä¿ããã¦ãã¾ãã
ã¾ããXdebugã§ãç¬èªã®ã¦ã¼ã¶å®ç¾©ãã³ãã©ãç»é²ãã¦ãã¾ãããQIQã®ãã®ã¨ã¯è¢«ã£ã¦ãã¾ããã
å®è¡ã¨ã³ã³ãã¤ã«: PHP+QIQ+APC posted by (C)rsk
ã¨ããããã§ããå¿ ãä»ã®ã¨ã¯ã¹ãã³ã·ã§ã³ããå ã«ãã¼ãããããã¨ããå®ãã°ãQIQã¯ãã£ãã·ã¥ããããã¬ã¨ãé£æºã§ãã¾ãããããããããçããã