Giter Site home page Giter Site logo

gitblog不支持PHP7 about gitblog HOT 7 CLOSED

jockchou avatar jockchou commented on July 18, 2024
gitblog不支持PHP7

from gitblog.

Comments (7)

vc12345679 avatar vc12345679 commented on July 18, 2024

请更新新版,Parsedown和Parsedown-Extra已在 021bf84 (Nov 15, 2016)中更新以支持php7。
并已亲测验证,验证环境:

$ php --version
PHP 7.1.3 (cli) (built: Mar 17 2017 16:59:59) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
$ nginx -v
nginx version: nginx/1.10.3

PS 当前版本中,$ctime = date("Y-m-d H:i:s", $fileProp['cdate']);在Markdown.php第533行

from gitblog.

AleutianXie avatar AleutianXie commented on July 18, 2024

@vc12345679 谢谢。奇怪,我是git clone的master分支,不知道为什么没有这个改动……,不过我自己更新了CI和Parsedown。

from gitblog.

vc12345679 avatar vc12345679 commented on July 18, 2024

你试试 git fetch? 再 git status 看一下

from gitblog.

AleutianXie avatar AleutianXie commented on July 18, 2024

@vc12345679 git log 看了下,最近的commit 还是14年的,可能是我git clone的时候出什么问题了。这个问题忽略吧。
另那个‘cdate’的问题,是对应的md文件没有相应cdate的属性,PHP报错。

from gitblog.

vc12345679 avatar vc12345679 commented on July 18, 2024

@AleutianXie git remote -v 看一下对应的origin远程库URL,是https://github.com/jockchou/gitblog.git吗?
cdate是在 sys/helpers/file_helper.php 里定义的,赋值在第306行

from gitblog.

vc12345679 avatar vc12345679 commented on July 18, 2024

@AleutianXie 知道git不工作的原因了,Jul 31, 2015 之后jockchou把项目整个升级到v2.0了,跟之前版本不兼容,github上的repository也是推倒重来的,Initial Commit (jockchou committed on Jul 21, 2015, 87d0885)

from gitblog.

AleutianXie avatar AleutianXie commented on July 18, 2024

@vc12345679 哦,好的。谢谢,我重新git clone了一下,更新到最新了

from gitblog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.