View gist:7561b2a07c5f1fba76c7
<?php | |
require './vendor/autoload.php'; | |
// The code samples to parse. | |
// => bool(false) | |
$code = '<?php class Foo {public $bar;}'; | |
// => bool(true) |
View gist:37147767adf0514674ee
php 69474 160-14e8 ENTER SQLAllocEnv | |
HENV * 0x029AD090 | |
php 69474 160-14e8 EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS) | |
HENV * 0x029AD090 ( 0x00163E60) | |
php 69474 160-14e8 ENTER SQLAllocConnect | |
HENV 0x00163E60 | |
HDBC * 0x029AD094 |
View gist:b6c26ec22db29822ca00
<?php | |
mkdir('foo1'); | |
mkdir('foo2'); | |
file_put_contents('foo2/bar.txt', '42'); | |
symlink('../foo2/bar.txt', 'foo1/foo3.txt'); | |
var_dump(file_get_contents('foo1/foo3.txt')); |
View gist:39662a0973653ddf7880
php 69381 11cc-49c ENTER SQLAllocEnv | |
HENV * 0x027FCC78 | |
php 69381 11cc-49c EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS) | |
HENV * 0x027FCC78 ( 0x00D41758) | |
php 69381 11cc-49c ENTER SQLAllocConnect | |
HENV 0x00D41758 | |
HDBC * 0x027FCC7C |
View gist:e34ce51bfc50f6a8c8d6
php 69381 1334-18c0 ENTER SQLAllocEnv | |
HENV * 0x00E76280 | |
php 69381 1334-18c0 EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS) | |
HENV * 0x00E76280 ( 0x00601758) | |
php 69381 1334-18c0 ENTER SQLAllocConnect | |
HENV 0x00601758 | |
HDBC * 0x00E76284 |
View ODBC trace
php 69736 17e0-15f4 ENTER SQLSetEnvAttr | |
SQLHENV 0x00000000 | |
SQLINTEGER 201 <SQL_ATTR_CONNECTION_POOLING> | |
SQLPOINTER 2 <SQL_CP_ONE_PER_HENV> | |
SQLINTEGER 0 | |
php 69736 17e0-15f4 EXIT SQLSetEnvAttr with return code 0 (SQL_SUCCESS) | |
SQLHENV 0x00000000 | |
SQLINTEGER 201 <SQL_ATTR_CONNECTION_POOLING> |
View php_doc.php
</programlisting> | |
</example> | |
</para> | |
+ | |
+ <sect2 xml:id="functions.scalar-type-declaration"> | |
+ <title>Type Declaration</title> | |
+ <note> | |
+ <para> | |
+ Type declaration is also known as Type Hinting. |
View var-stream.php
<?php | |
class VariableStream { | |
var $position; | |
var $varname; | |
function stream_open($path, $mode, $options, &$opened_path) | |
{ | |
$url = parse_url($path); | |
$this->varname = $url["host"]; |
View zip-stream.php
<?php | |
$name = "/tmp/hello.txt.gz"; | |
$file = "compress.zlib://" . $name; | |
$stream = fopen($file, 'w'); | |
var_dump(flock($stream, LOCK_EX)); | |
fputs($stream, 'hello'); | |
fclose($stream); |
View gist:eae8211716b11aee2576b5041d07e004
C:\Users\cmb\php\bugs\73048>php 73048.php | |
Bearbeitete Datei: parent | |
1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein Verarbeitungsfehler aufgetreten. | |
Bearbeitete Datei: parent\child | |
1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein Verarbeitungsfehler aufgetreten. | |
Bearbeitete Datei: parent | |
1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein Verarbeitungsfehler aufgetreten. | |
Datenträger in Laufwerk C: ist System | |
Volumeseriennummer: 04CF-334A |
OlderNewer