Enviar pesquisa
Carregar
3分くらいで分かるassert()
•
0 gostou
•
1,331 visualizações
Ippei Ogiwara
Seguir
2007/11/21 PHP懇親会 http://d.hatena.ne.jp/i_ogi/20071122/1195763577
Leia menos
Leia mais
Tecnologia
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 14
Baixar agora
Baixar para ler offline
Recomendados
Program membalik kata
Program membalik kata
haqiemisme
Perl6 operators and metaoperators
Perl6 operators and metaoperators
Simon Proctor
R code
R code
Manav Goel
Advance Techniques In Php
Advance Techniques In Php
Kumar S
From Javascript To Haskell
From Javascript To Haskell
ujihisa
Blocks+gcd入門
Blocks+gcd入門
領一 和泉田
Table through php
Table through php
syeda zoya mehdi
言語の設計判断
言語の設計判断
nishio
Recomendados
Program membalik kata
Program membalik kata
haqiemisme
Perl6 operators and metaoperators
Perl6 operators and metaoperators
Simon Proctor
R code
R code
Manav Goel
Advance Techniques In Php
Advance Techniques In Php
Kumar S
From Javascript To Haskell
From Javascript To Haskell
ujihisa
Blocks+gcd入門
Blocks+gcd入門
領一 和泉田
Table through php
Table through php
syeda zoya mehdi
言語の設計判断
言語の設計判断
nishio
Appreciation certificate
Appreciation certificate
Jankeshow Pratap Singh
Useful javascript
Useful javascript
Lei Kang
PHP 101
PHP 101
Muhammad Hijazi
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at Stripe
MongoDB
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみた
Akira Maruoka
Frege is a Haskell for the JVM
Frege is a Haskell for the JVM
jwausle
C code
C code
UET Taxila
大量地区化解决方案V5
大量地区化解决方案V5
bqconf
07 php
07 php
CBRIARCSC
Vcs16
Vcs16
Malikireddy Bramhananda Reddy
Introduction to Go for Java Programmers
Introduction to Go for Java Programmers
Kalpa Pathum Welivitigoda
Super Advanced Python –act1
Super Advanced Python –act1
Ke Wei Louis
Designing Immutability Data Flows in Ember
Designing Immutability Data Flows in Ember
Jorge Lainfiesta
04 2 오버플로 상수 매크로
04 2 오버플로 상수 매크로
Changwon National University
2016 gunma.web games-and-asm.js
2016 gunma.web games-and-asm.js
Noritada Shimizu
Simple PHP programs by kongu Engineering College
Simple PHP programs by kongu Engineering College
pyingkodi maran
20151224-games
20151224-games
Noritada Shimizu
C++ Lambda and concurrency
C++ Lambda and concurrency
명신 김
Clustering com numpy e cython
Clustering com numpy e cython
Anderson Dantas
Pqp1
Pqp1
Francisco Vasconcelos
PHP at Yahoo! JAPAN
PHP at Yahoo! JAPAN
Ippei Ogiwara
Brit 3 11
Brit 3 11
acunato
Mais conteúdo relacionado
Mais procurados
Appreciation certificate
Appreciation certificate
Jankeshow Pratap Singh
Useful javascript
Useful javascript
Lei Kang
PHP 101
PHP 101
Muhammad Hijazi
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at Stripe
MongoDB
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみた
Akira Maruoka
Frege is a Haskell for the JVM
Frege is a Haskell for the JVM
jwausle
C code
C code
UET Taxila
大量地区化解决方案V5
大量地区化解决方案V5
bqconf
07 php
07 php
CBRIARCSC
Vcs16
Vcs16
Malikireddy Bramhananda Reddy
Introduction to Go for Java Programmers
Introduction to Go for Java Programmers
Kalpa Pathum Welivitigoda
Super Advanced Python –act1
Super Advanced Python –act1
Ke Wei Louis
Designing Immutability Data Flows in Ember
Designing Immutability Data Flows in Ember
Jorge Lainfiesta
04 2 오버플로 상수 매크로
04 2 오버플로 상수 매크로
Changwon National University
2016 gunma.web games-and-asm.js
2016 gunma.web games-and-asm.js
Noritada Shimizu
Simple PHP programs by kongu Engineering College
Simple PHP programs by kongu Engineering College
pyingkodi maran
20151224-games
20151224-games
Noritada Shimizu
C++ Lambda and concurrency
C++ Lambda and concurrency
명신 김
Clustering com numpy e cython
Clustering com numpy e cython
Anderson Dantas
Mais procurados
(19)
Appreciation certificate
Appreciation certificate
Useful javascript
Useful javascript
PHP 101
PHP 101
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Building Real Time Systems on MongoDB Using the Oplog at Stripe
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみた
Frege is a Haskell for the JVM
Frege is a Haskell for the JVM
C code
C code
大量地区化解决方案V5
大量地区化解决方案V5
07 php
07 php
Vcs16
Vcs16
Introduction to Go for Java Programmers
Introduction to Go for Java Programmers
Super Advanced Python –act1
Super Advanced Python –act1
Designing Immutability Data Flows in Ember
Designing Immutability Data Flows in Ember
04 2 오버플로 상수 매크로
04 2 오버플로 상수 매크로
2016 gunma.web games-and-asm.js
2016 gunma.web games-and-asm.js
Simple PHP programs by kongu Engineering College
Simple PHP programs by kongu Engineering College
20151224-games
20151224-games
C++ Lambda and concurrency
C++ Lambda and concurrency
Clustering com numpy e cython
Clustering com numpy e cython
Destaque
Pqp1
Pqp1
Francisco Vasconcelos
PHP at Yahoo! JAPAN
PHP at Yahoo! JAPAN
Ippei Ogiwara
Brit 3 11
Brit 3 11
acunato
Britney 3/11
Britney 3/11
acunato
Brit compra auto nuevo
Brit compra auto nuevo
acunato
Cantik
Cantik
asepmuhsin
Present. Cultura
Present. Cultura
pasajeronavetierra1
Vuelodegansos 0
Vuelodegansos 0
rpanteon
la navidad
la navidad
guestac01f9
2007 Result
2007 Result
gojipcap
L'àpat de Nadal ppt
L'àpat de Nadal ppt
Eva Figueras
Tango - Bailar Morena
Tango - Bailar Morena
guest4af3cc
Test
Test
guestbcb7d7
SaaS E-Commerce Wirtschaftlichkeit
SaaS E-Commerce Wirtschaftlichkeit
Martina Goehring
internationalisatie en lokalisatie in Drupal 5 en 6 - DrupalJam2007 Hilversum
internationalisatie en lokalisatie in Drupal 5 en 6 - DrupalJam2007 Hilversum
Joeri Poesen
Katuak
Katuak
vanesatxu
Teknologia Energia
Teknologia Energia
guestda1c28
Manjedoura
Manjedoura
jardim
Integración de Rails en el Escritorio con Slingshot
Integración de Rails en el Escritorio con Slingshot
guest2e577a
23
23
scapella
Destaque
(20)
Pqp1
Pqp1
PHP at Yahoo! JAPAN
PHP at Yahoo! JAPAN
Brit 3 11
Brit 3 11
Britney 3/11
Britney 3/11
Brit compra auto nuevo
Brit compra auto nuevo
Cantik
Cantik
Present. Cultura
Present. Cultura
Vuelodegansos 0
Vuelodegansos 0
la navidad
la navidad
2007 Result
2007 Result
L'àpat de Nadal ppt
L'àpat de Nadal ppt
Tango - Bailar Morena
Tango - Bailar Morena
Test
Test
SaaS E-Commerce Wirtschaftlichkeit
SaaS E-Commerce Wirtschaftlichkeit
internationalisatie en lokalisatie in Drupal 5 en 6 - DrupalJam2007 Hilversum
internationalisatie en lokalisatie in Drupal 5 en 6 - DrupalJam2007 Hilversum
Katuak
Katuak
Teknologia Energia
Teknologia Energia
Manjedoura
Manjedoura
Integración de Rails en el Escritorio con Slingshot
Integración de Rails en el Escritorio con Slingshot
23
23
Semelhante a 3分くらいで分かるassert()
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
Mateusz Zalewski
php global $bsize,$playerToken,$myToken,$gameOver,$winArr,$rowAr.pdf
php global $bsize,$playerToken,$myToken,$gameOver,$winArr,$rowAr.pdf
anjalitimecenter11
Ae internals
Ae internals
mnikolenko
Climbing the Abstract Syntax Tree (PHP South Africa 2017)
Climbing the Abstract Syntax Tree (PHP South Africa 2017)
James Titcumb
谈A国古代!%,%o现代l实现
谈A国古代!%,%o现代l实现
sugeladi
Climbing the Abstract Syntax Tree (CodeiD PHP Odessa 2017)
Climbing the Abstract Syntax Tree (CodeiD PHP Odessa 2017)
James Titcumb
Climbing the Abstract Syntax Tree (IPC Fall 2017)
Climbing the Abstract Syntax Tree (IPC Fall 2017)
James Titcumb
Climbing the Abstract Syntax Tree (ScotlandPHP 2018)
Climbing the Abstract Syntax Tree (ScotlandPHP 2018)
James Titcumb
Climbing the Abstract Syntax Tree (DPC 2017)
Climbing the Abstract Syntax Tree (DPC 2017)
James Titcumb
Crazy things done on PHP
Crazy things done on PHP
Taras Kalapun
"Kto to pisał?!... A, to ja.", czyli sposoby, żeby znienawidzić siebie z prze...
"Kto to pisał?!... A, to ja.", czyli sposoby, żeby znienawidzić siebie z prze...
Mateusz Zalewski
Công nghệ sấy đường thùng quay
Công nghệ sấy đường thùng quay
Ông Già
Climbing the Abstract Syntax Tree (PHP UK 2018)
Climbing the Abstract Syntax Tree (PHP UK 2018)
James Titcumb
Climbing the Abstract Syntax Tree (PHP Developer Days Dresden 2018)
Climbing the Abstract Syntax Tree (PHP Developer Days Dresden 2018)
James Titcumb
Climbing the Abstract Syntax Tree (Bulgaria PHP 2016)
Climbing the Abstract Syntax Tree (Bulgaria PHP 2016)
James Titcumb
Climbing the Abstract Syntax Tree (php[world] 2019)
Climbing the Abstract Syntax Tree (php[world] 2019)
James Titcumb
Climbing the Abstract Syntax Tree (Southeast PHP 2018)
Climbing the Abstract Syntax Tree (Southeast PHP 2018)
James Titcumb
Climbing the Abstract Syntax Tree (Midwest PHP 2020)
Climbing the Abstract Syntax Tree (Midwest PHP 2020)
James Titcumb
Climbing the Abstract Syntax Tree (PHP Russia 2019)
Climbing the Abstract Syntax Tree (PHP Russia 2019)
James Titcumb
Climbing the Abstract Syntax Tree (phpDay 2017)
Climbing the Abstract Syntax Tree (phpDay 2017)
James Titcumb
Semelhante a 3分くらいで分かるassert()
(20)
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
[PHPCon 2023] “Kto to pisał?!... a, to ja.”, czyli sposoby żeby znienawidzić ...
php global $bsize,$playerToken,$myToken,$gameOver,$winArr,$rowAr.pdf
php global $bsize,$playerToken,$myToken,$gameOver,$winArr,$rowAr.pdf
Ae internals
Ae internals
Climbing the Abstract Syntax Tree (PHP South Africa 2017)
Climbing the Abstract Syntax Tree (PHP South Africa 2017)
谈A国古代!%,%o现代l实现
谈A国古代!%,%o现代l实现
Climbing the Abstract Syntax Tree (CodeiD PHP Odessa 2017)
Climbing the Abstract Syntax Tree (CodeiD PHP Odessa 2017)
Climbing the Abstract Syntax Tree (IPC Fall 2017)
Climbing the Abstract Syntax Tree (IPC Fall 2017)
Climbing the Abstract Syntax Tree (ScotlandPHP 2018)
Climbing the Abstract Syntax Tree (ScotlandPHP 2018)
Climbing the Abstract Syntax Tree (DPC 2017)
Climbing the Abstract Syntax Tree (DPC 2017)
Crazy things done on PHP
Crazy things done on PHP
"Kto to pisał?!... A, to ja.", czyli sposoby, żeby znienawidzić siebie z prze...
"Kto to pisał?!... A, to ja.", czyli sposoby, żeby znienawidzić siebie z prze...
Công nghệ sấy đường thùng quay
Công nghệ sấy đường thùng quay
Climbing the Abstract Syntax Tree (PHP UK 2018)
Climbing the Abstract Syntax Tree (PHP UK 2018)
Climbing the Abstract Syntax Tree (PHP Developer Days Dresden 2018)
Climbing the Abstract Syntax Tree (PHP Developer Days Dresden 2018)
Climbing the Abstract Syntax Tree (Bulgaria PHP 2016)
Climbing the Abstract Syntax Tree (Bulgaria PHP 2016)
Climbing the Abstract Syntax Tree (php[world] 2019)
Climbing the Abstract Syntax Tree (php[world] 2019)
Climbing the Abstract Syntax Tree (Southeast PHP 2018)
Climbing the Abstract Syntax Tree (Southeast PHP 2018)
Climbing the Abstract Syntax Tree (Midwest PHP 2020)
Climbing the Abstract Syntax Tree (Midwest PHP 2020)
Climbing the Abstract Syntax Tree (PHP Russia 2019)
Climbing the Abstract Syntax Tree (PHP Russia 2019)
Climbing the Abstract Syntax Tree (phpDay 2017)
Climbing the Abstract Syntax Tree (phpDay 2017)
Último
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
LoriGlavin3
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
BookNet Canada
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
BkGupta21
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
Lonnie McRorey
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
MounikaPolabathina
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
Hervé Boutemy
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
Pixlogix Infotech
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
Kalema Edgar
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
LoriGlavin3
How to write a Business Continuity Plan
How to write a Business Continuity Plan
Databarracks
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Rizwan Syed
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
Lorenzo Miniero
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Sergiu Bodiu
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
Fwdays
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
Curtis Poe
Último
(20)
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
How to write a Business Continuity Plan
How to write a Business Continuity Plan
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
3分くらいで分かるassert()
1.
Z
Z^ ,88079 KWWSSKSQHWDVVHUW
2.
AA y Z^
= y _ `a ] yGKDWHQDQHMSLBRJL
3.
,88079
^
4.
,88079 Z
Z[ ERRO DVVHUW PL[HG DVVHUWLRQ y2 [DVVHUWLRQ =A Z )$/6( ] = y =_c [ = c ! [ = B Z [ tLQL _ Z DVVHUWBRSWLRQV
5.
,88079 Z
Z[ y _c y 3+38QLW DVVHUW7UXH Z =7UXH ^ Z a [^ ycc ` = DVVHUWDFWLYH 2II ^
6.
,88079 Z
Z[ function hoge($max) { // 0 $max $ret = mt_rand(0, $max): * // 0 $max assert(0 = $ret $ret = $max); * return $ret; }
7.
,88079 Z
Z[ function hoge($max) { // 0 $max $ret = mt_rand(0, $max); * // 0 $max assert('0 = $ret $ret = $max'); * return $ret; }
8.
29*7,3/ LQW PLQ
LQW PD[@ y ] PWBUDQG Z= PLQ ! PD[[ ^ y Z [ hoge(-10); Warning: assert(): Assertion quot;0 = $ret $ret = $maxquot; failed in test.php on line 7
9.
,88079
y HYDO y []] t Z ^ y ^= ZHYDO
10.
,88079
1) PHP_FUNCTION(assert) { zval **assertion; int val; char *myeval = NULL; char *compiled_string_description; if (! ASSERTG(active)) { RETURN_TRUE; c Z_ } #709:73 if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, assertion) == F WRONG_PARAM_COUNT; }
11.
]
= ^ Q ! + y W []] = B `a ^Z ^ y1) ^Z = 3+3 ][ Z
12.
y
! `aZ ^ y HYDO Y y c][ ! [
13.
6Z ^ Z
S
14.
Z
] [
Baixar agora