A Brief Introduction to Multi-Threading in PHP
- Foreword
- Execution
- Sharing
- Synchronization
- Pitfalls
<?php | |
$c = new CDbCriteria(); | |
Hoge::model()->findAll($c); | |
// SELECT * FROM `hoge` `t` | |
$c = new CDbCriteria(); | |
$c->addSearchCondition('t.fuga', null); // null, false, ''などは無視されるようです | |
Hoge::model()->findAll($c); |
#!/bin/bash | |
# Prevent strace from abbreviating arguments? | |
# You want the -s strsize option, which specifies the maximum length of a string to display (the default is 32). | |
# -etrace=!open means to trace every system call except open. In addition, the special values all and none have the obvious meanings. | |
#-etrace=!open | |
#-e trace=!write. |
/** | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2015 Circle Internet Financial | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
Note The extension Imagick is now included in Ondrej's PPA. All you need to do now is
$ sudo apt-get install php-imagick
, and you're done. I'll keep the guide here because a lot of it is still true for other extensions
======
I've installed PHP7 via Ondrej's PPA. He maintains these PPA's on his free time, consider donating
.Idea | |
.DS_Store |
<?php | |
define('YII_ENABLE_ERROR_HANDLER', false); | |
/** | |
* Class Yii_Library | |
* @package Libraries | |
*/ | |
class Yii_Library |