Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed php例子显示错误 #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions 6.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ ZEND_FUNCTION(sample_long_wrong)
<li>int return_value_used,代表用户端在调用此函数时有没有使用到它的返回值。</li>
</ul>
下面让我们先试验一个非常简单的例子,我先给出PHP语言中的实现,然后给出我们在扩展中用C语言完成相同功能的代码。
````php

例子:

```php
<?php
function sample_long()
{
Expand All @@ -39,8 +42,10 @@ function sample_long()
*/
?>

````
下面是我们在编写扩展时的实现。
```

下面是我们在编写扩展时的实现:

````c
ZEND_FUNCTION(sample_long)
{
Expand Down